Forum Moderators: phranque
mydomain.com/_here/findme.html mydomain.com/findme.html
mydomain.com/directory/findme.html
mydomain.com/directory/findme.html?someparam=3 mydomain.com/_here/findme.html Options +FollowSymlinks
RewriteEngine On
RewriteRule ^.*(?!_here)/*findme\.html$ /_here/findme.html [R=301,L] ^.* part matches the whole input string right to the very end. The parser then sees there is more stuff in the pattern and it then has to perform hundreds of "back off and retry" trial matches to find out what you really meant. RewriteCond %{REQUEST_URI} !here is the usual way to prevent a loop. /* means "any number of consecutive slashes, including none" - that is surely an error.