Hi,
I've inserted the following piece of code that will add a trailing slash to all URLs.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule (.*)$ http://www.examplel.com/$1/ [R=301,L]
For the most part, this seems to work. However, it seems to have affected logging into my website. From whatever angle I attempt to log in, the page will just refresh and the url will read as follows:
http://www.example.com/login/
So basically, the rewrite rule just redirects to /login/ when I click login. Note the login is always unsuccessful.
If I remove those 4 lines above, I'm able to log in fine but don't have the trailing slashes. To add to the mix, if I attempt to login from the sidebar, it works!
I'm not hot on rewrite rules, so does anyone know what it could be?
Many thanks





Linear Mode




