<a href="http://www.wordpress official website.org/”>WordPress had a shiny new 3.1 update I found out about today. The features looked pretty interesting so I decided to install it on the sites I host on my windows 2008 server. I downloaded the files and ran the upgrade.php to install the update. On most of the sites, I had no problems. One I’m in the middle of setting up was giving me the “Could Not Open the Page, Too Many Redirects” error. What is going on?
I’m working with my graphics guy and wondered if he made some changes to that site. That was the only web site with the problem. He was also supposed to be working on a widget but he said he was just uploading some images at the time. That wasn’t it. What else could it be?
I use the web.config file within IIS to do this type of redirect. Anything not www.domain.com format will be redirected there. As soon as I took that code out of the web.config, the site started loading. But not the way it was supposed to load.
Something was redirecting it back to http://domain.com/ even if I had www.domain.com loaded. That seems to be causing the loop. Something was fighting with IIS! Since I had just upgraded wordpress, guess where I started looking?
Google to the rescue
I found a handy post talking about this very issue here:
Others were having the same problem. One poster, Jarnez, posted a solution that seemed to fit with what I was experiencing:
I just installed this plugin:
And it seems to have fixed my issue. I can bring up all the site pages now.
That seemed like my solution too. Disabling the canonical redirects in WordPress made sense with my theory. I also installed the plugin.
The site continued to load fine.
I put back the code in my web.config to redirect to www.domain.com and VOILA! The site was working again.
So it looks like something funky is going on with WordPress 3.1 and canonical redirects on windows servers. I installed this on five sites and only one had this problem. Hopefully if you have a similar problem, this is a possible solution for you.