WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have been using WordPress multisite for several years without a problem. At some point in the last few days one of my many multisite domains is stuck in a redirection loop.

The domain is http://www.drandrewhall.com and as of this writing is stuck in a redirection loop. This worked fine until a couple days ago.

I have removed it from the domain mapping plugin and added it back in. I can remove the www domain and add in just the drandrewhall.com as the primary and it works fine.

I've looked at the database tables and everything seems to work. I've changed the theme, removed all the plugins, made sure everything is up to date, but the problem remains.

All the other multisite sites are working correctly and this one was until 3 days ago.

share|improve this question
Could you be more precise about the question you ask? Give more details about it please. – JMau Jul 14 '13 at 14:04

It's likely down to an nginx configuration if your server runs nginx.

For example, an nginx default config could contain:-

if ($host ~* ^www.domain.co.uk) {
    rewrite ^(.*)$ https://domain.co.uk$1 permanent;

This would result in your server trying to set a 301 redirect from www to non www but then when www is defined in Wordpress, the server tries to redirect back to non www causing an infinite redirect loop.

We've recently experienced this with a Wordpress website and exhausted every possible route on the Wordpress side as it sounds that you have done subsequently coming across the nginx config at domain level on the server.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.