website.com/login redirects to website.com/index.php
Permalink
I've never encountered this before on a C5 website. For some reason if I'm not logged in and I go to visit website.com/login I get redirected to website.com/index.php
I can still log in if I go to website.com/index.php/login however.
Pretty URLs are turned on and are working properly for all other pages on the site.
I can still log in if I go to website.com/index.php/login however.
Pretty URLs are turned on and are working properly for all other pages on the site.
Alright I got this sorted out. It had to do with the HTML5 Boilerplate .htaccess and where I had entered the c5 Pretty URL rules.
For those interested, be sure to place the c5 pretty url rules below this line in your boilerplate .htaccess:
For those interested, be sure to place the c5 pretty url rules below this line in your boilerplate .htaccess:
# Option 1: # Rewrite "www.example.com -> example.com". <IfModule mod_rewrite.c> RewriteCond %{HTTPS} !=on RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L]
I've noticed that there's some other weird redirection happening on the website.
If you visit ANY of the pages with www. before the domain, the visitor will be redirect to the homepage without a www. in front. For example:
domain.com/about-us/ = lands on about us page
http://www.domain.com/about-us/ = redirects to domain.com/
I've never encountered this functionality with c5, although I am using the HTML5 Boilerplate .htaccess for the first time. Perhaps this is part of the problem...