Forum Moderators: phranque
RewriteCond %{query_string} Password\+hint [NC]
RewriteRule ^links\.php links.php? [L]
I only want to do this on the links.php page but it doesn't work. There are no other rewrite rules in the .htaccess and I know that Apache is reading as I tested by adding a redirect.
Any help on where I am going wrong would be appreciated.
Thanks in advance.
RewriteCond %{QUERY_STRING} Password\+hint [NC]
RewriteRule ^links\.php$ http://www.example.com/links.php? [R=301,L]
Jim
[dkt907153/sid#26c748][rid#11d2f08/initial] (2) init rewrite engine with requested uri /portal/links2.php
[dkt907153/sid#26c748][rid#11d2f08/initial] (1) pass through /portal/links2.php
[dkt907153/sid#26c748][rid#11d2f08/initial] (3) [perdir C:/temp/htdocs/] strip per-dir prefix: C:/temp/htdocs/portal/links2.php -> portal/links2.php
[dkt907153/sid#26c748][rid#11d2f08/initial] (3) [perdir C:/temp/htdocs/] applying pattern '^links2\.php$' to uri 'portal/links2.php'
[dkt907153/sid#26c748][rid#11d2f08/initial] (1) [perdir C:/temp/htdocs/] pass through C:/temp/htdocs/portal/links2.php
It looks like its not matching on the query string. Any ideas?
Thanks