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

multisite - Multi site sub sites redirect to root if www is NOT used in url

programmeradmin1浏览0评论

I have tested this on 2 different servers, new install of multisite and in both cases if www is not included in the url then you are redirected to the site root.

I tried a new install, no plugins and default theme: targetremarket/test/site-template/ no www, installed in "test" sub folder.

That will redirect to / (site root)

I have an older install on same server that works fine so copied the htaccess from that but no luck.

Tried on another server, different domain, fresh wp install through cpanel and without www: virtualgeorge.xyz/targetremarket/ (sub site)

redirects to: / (also redirects to root)

I having some other strange behaviours which I assume is also due to this redirect issue. How could I correct this, am I doing something wrong on setup?

Any tips much appreciated.

I have tested this on 2 different servers, new install of multisite and in both cases if www is not included in the url then you are redirected to the site root.

I tried a new install, no plugins and default theme: targetremarket/test/site-template/ no www, installed in "test" sub folder.

That will redirect to http://www.targetremarket/test/ (site root)

I have an older install on same server that works fine so copied the htaccess from that but no luck.

Tried on another server, different domain, fresh wp install through cpanel and without www: virtualgeorge.xyz/targetremarket/ (sub site)

redirects to: http://www.virtualgeorge.xyz/ (also redirects to root)

I having some other strange behaviours which I assume is also due to this redirect issue. How could I correct this, am I doing something wrong on setup?

Any tips much appreciated.

Share Improve this question asked Dec 14, 2016 at 20:25 George BGeorge B 13 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

I finally got this sorted. During setup using the installer for cpanel, I had to choose the option to install on my domain WITHOUT www. I was just leaving the default setting which used www and it was causing some issues.

发布评论

评论列表(0)

  1. 暂无评论