When a user enters the URL http://www.mysite.com./ (see the additional '.' before the trailing slash) the ruleset passes this through and is causing problems in my script. The problem is that I am using the URL to determine which page we are on and that '.' is killing the params sent to my script. I know I can fix this code-side but I was hoping for a mod_rewrite solution.
Anyone have any ideas? As a note, the following rules are not working:
Code: Select all
#0 or more of any char
RewriteRule ^(.*)$ /index.php [QSA,L]
#1 or more of any char
RewriteRule ^(.+)$ /index.php [QSA,L]