Subsites won’t run on www…?
-
Firstly, what’s the purpose of using the www subdomain?? I understand it has to do with cookies, but with regard to WordPress – should I care?
Now, I currently have a network of sites — each domain forwarded — and they won’t work with www. So, to avoid errors when visitors mistakenly visit https://www.subsite1.com rather than subsite1.com, I’ve setup a subdomain forward DNS record. This solves the problem MOST of the time; however, this won’t redirect something like https://www.subsite1.com/my-blog-post/. Am I doing it wrong? Would it be better to code it into the htaccess?
RewriteCond %{HTTP_HOST} ^www\.subsite1\.com [NC] RewriteRule ^(.*)$ https://subsite1.com/$1 [L,R=301]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Subsites won’t run on www…?’ is closed to new replies.