multisite non www gets redirected to main site
-
I am using wordpress v5.2.1.
I have setup wordpress multi site:
main site – https://www.site1.com
second site – https://www.site2.comScenario 1 – When I go to https://www.site2.com, it loads second site correctly.
Scenario 2 – But when I go to site.com (without the www) it redirect me to main site https://www.site1.com
How do i FIX this issue ?
Please advise. Many Thanks.
UPDATE:
Fixed with addingRewriteCond %{HTTP_HOST} ^site2.com [NC]
RewriteRule ^(.*)$ https://www.site2.com/$1 [L,R=301]To top of .htaacsess
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘multisite non www gets redirected to main site’ is closed to new replies.