[HELP NEEDED] - Using mod_rewrite to strip chars in URL
Posted: Sat Jul 15, 2006 2:39 am
I have a mod_rewrite ruleset in my .htacess file and it works the way I need it to except for one thing...
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:
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]