最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

multisite - All pages have 302 redirect, which I can't remove

programmeradmin2浏览0评论

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 badges
Add a comment  | 

1 Answer 1

Reset to default 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". 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.

发布评论

评论列表(0)

  1. 暂无评论