WordPress .htaccess causing redirect loop on root only without 'www.'
-
I installed a WordPress app on an OpenShift machine and added aliases (on OpenShift) and CNAMES to it (on CloudFlare).
I started getting a redirect loop error only when I was going to the website without www. And only on root. Going to wp-admin, for example, with or without the www. works well.
Then I commented my .htaccess and put a message on index.php. The message is shown, both with and without www. wp-admin still works.
I got the default .htaccess
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPressDo you know what could be wrong with my settings?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘WordPress .htaccess causing redirect loop on root only without 'www.'’ is closed to new replies.