I wanted to add a simple piece to the query string of a url.
Had trouble matching ls-home using ^ls-home$
Q1 is the hyphen special I tried escaping it with a backslash and it still didnt find it. What worked was in the below.
Here is the infinite loop scenario
RewriteCond %{REQUEST_URI} ls-home
RewriteRule ^(.*)$ http://text.com/ls-home/?pres=ls [L]
On the one hand I can see that ls-home would get matched again the second time round if the htaccess page gets reloaded ? some kind of loop. On the other hand it sounds reasonable to be able to do this.
Thanks



Reply With Quote

Bookmarks