admin管理员组

文章数量:1416651

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.

本文标签: multisiteMulti site sub sites redirect to root if www is NOT used in url