I have quite a few RewriteRules in my .htaccess that looks like this
RewriteRule ^something/(\d+)/start /index.php?ix=$1
RewriteRule ^embed/something/(\d+)/start /index.php?ix=$1&fEmbed=1
The only difference between these two is the leading "embed/", so I was thinking it would be beneficial to combine these into a single RewriteRule. My attempts are stuck at
RewriteRule ^(embed/)?something/(\d+)/start /index.php?ix=$2&fEmbed=$1
Which sets "&fEmbed=embed/", which really is not what I want. I want to evaluate the contents of $1, and output something different (namely "1").
Any ideas of how to approach this while combining the first two RewriteRules into a single RewriteRule?