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

I have tested this on 2 different servers, new install of multisite and in both cases if www is not included in the url

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745255166a4618910.html

相关推荐

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

    I have tested this on 2 different servers, new install of multisite and in both cases if www is not included in the url

    6小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信