htaccess - Trailing slash affecting login

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 12-11-2008, 07:37 PM
New Pligger
 
Join Date: Oct 2008
Posts: 8
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
Reply With Quote
Reply

Tags
htaccess, rewrite, trailing slash

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Totally confused now, can anyone give me an htaccess that works in subfolder wanderingmind Questions and Comments 2 07-13-2007 10:41 AM
Does htaccess trailing slash fix need to be adjusted for subfolder? homebound Questions and Comments 8 07-10-2007 06:32 PM
Login URL redirection problem on IIS sameercdac Questions and Comments 2 04-02-2007 02:13 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development