I’ve got this site setup as a multisite with the main domain being .
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 will direct to 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.
I’ve got this site setup as a multisite with the main domain being http://www.scottish-orienteering.
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/example will direct to http://www.scottish-orienteering 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.
Share Improve this question asked Feb 26, 2020 at 7:51 Olly BowmanOlly Bowman 112 bronze badges1 Answer
Reset to default 1Welcome!
Because you are using multisite, there are a few other places your site may have the WWW active. I would look in the following:
- wp-config.php under "DOMAIN_CURRENT_SITE". info
- wp-config.php under "WP_HOME" and/or "WP_SITEURL" info
- Inside the database under the "{prefix}_site" (wp_site) table info
- 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.