How to Avoid WordPress Firefox Redirect Loop Error?

Scenario: I had an existing site with this in the .htacess file which basically redirects anything without a www to a www address. 

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^mysite.com [nc]
rewriterule ^(.*)$ http://www.mysite.com/$1 [r=301,nc]

Now, I installed WordPress in a sub-directory and the site was setup without a www prefix. Now, I cannot log into the WordPress admin and load any WordPress posts or pages since Fiefox would return a redirect loop error. 

Solution: I removed the rewriterule from the base site .htacess file. Logged into WordPress admin, added the www prefix. Signed out. Now added the rewrite rule back in the .htaccess file. 

Hope this helps someone looking at this error and pulling out their hair like I was.

{via WP thread }

Explore Tags: , ,

Comments are closed.