1

I’ve got this site setup as a multisite with the main domain being http://www.scottish-orienteering.org.

If I enter a page without the www at the start it always 302 redirects to the homepage with a www rather than the current page. For example https://scottish-orienteering.org/example will direct to http://www.scottish-orienteering.org with a 302 redirect. This happens on everypage, and I want it to redirect to the same page with the www.

I’ve tried disabling all plugins, changing the theme and also removing the .htaccess file but it still does this.

Is there somewhere else I should be looking, it’s driving me mad.

1

Welcome!

Because you are using multisite, there are a few other places your site may have the WWW active. I would look in the following:

  1. wp-config.php under "DOMAIN_CURRENT_SITE". [1]
  2. wp-config.php under "WP_HOME" and/or "WP_SITEURL" [2]
  3. Inside the database under the "{prefix}_site" (wp_site) table [3]
  4. Inside the database under the "{prefix}_blogs" (wp_blogs) table [4]

Failing those sources, I would check your hosting company. Do they do any domain routing, and if so, which domain do they have flagged under your account - www or non-www?

Use the reference links below to read more on the sources I'm mentioning:

Hope this helps.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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