Website has a redirect loop


#1

I have enabled this option
Add WWW: Make http://backarthritisnj.com/ redirect to http://www.backarthritisnj.com/

But after choosing www option, I am getting the following error while opening this site

“The webpage at http://www.backarthritisnj.com/ has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem.”

Pl help


#2

Might be a directive in a .htaccess file that redirects it back to the non-www version, creating an endless loop.


#3

Before you did that, did you set WP to use www.backarthritisnj.com ? If not, WP is trying to go to backarthritisnj.com which redirects and redirects and… You get the idea :slight_smile:


#4

Yes I did not change anything in WP and also there is no htaccess file


#5

Sorry… is that “Yes, I changed WP to use www…” or “No, I did not change anything in WP.”

I’m assuming it’s the second, and if so, you should add this to your wp-config.php:

define('WP_HOME','http://www.backarthritisnj.com');
define('WP_SITEURL','http://www.backarthritisnj.com');