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 Answer 1



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". info
  2. wp-config.php under "WP_HOME" and/or "WP_SITEURL" info
  3. Inside the database under the "{prefix}_site" (wp_site) table info
  4. Inside the database under the "{prefix}_blogs" (wp_blogs) table info

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?

Hope this helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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