Hi, I've been asked to updated the .htaccess file on a website to always add trailing slashes onto the URLs, e.g.
"www.xyz.co.uk/news" -> "www.xyz.co.uk/news/"
I added this code to my htaccess file on the apache web server:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ http://www.xyz.co.uk/$1/ [L,R=301]
This is working really well, except that with these rules, when I attempt to login to Silverstripe "www.xyz.com/admin", when I input my (correct) user name & password, Silverstripe responds with "That doesn't seem to be the right e-mail address or password. Please try again".
I am having trouble identifying where the login is getting disrupted. I would be grateful for any advice on an additional rule/tweak that would allow the admin login to function correctly.
Regards,
AndyH.