My htaccess file looks like this:
RewriteEngine on
Redirect 301 /soa/category/seds/ <a href="http://www.scottish-orienteering.org/seds/">http://www.scottish-orienteering.org/seds/</a>
RewriteCond $1 ^(seds|soa|P[0-9]{2,8}) [NC]
RewriteRule ^(.*)$ index.php?/$1 [L]This then generates a url of http://www.scottish-orienteering.org/seds/?/soa/category/seds/
that does work and show the correct page but looks bad.
seds is a template group and a category.
I have a few similar redirects that have the same problem with adding the query string to the end of the url, but only when there is a template group included in the source for redirection. The following works fine without adding the query string:
Redirect 301 /contacts <a href="http://www.scottish-orienteering.org/soa/contacts">http://www.scottish-orienteering.org/soa/contacts</a>where soa is the template group and contacts is a template in that group.
So I’m guessing that the problem is to do with a template group listed in the RewriteCond also being part of the Redirect request.
I’ve tried putting the Redirect before and after the Rewrite to remove the index.php and it makes no difference.
I’ve searched all my htaccess resources and the EE forums but can’t find a similar issue.