Force www on multisite.
-
I used the following snippet to force www on my domain, and it did seem to work. But all other sites are redirecting back to my main site. E.g blog.mydomain.com goes through https://www.mydomain.com/index.php to https://www.mydomain.com. Now I don’t want that. So is there another way to hack the .htaccess file?
RewriteCond %{HTTP_HOST} !^www.mydomain.com$ RewriteRule ^(.*)$ https://www.mydomain.com/$1 [R=301]
Any help will be greatly appreciated!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Force www on multisite.’ is closed to new replies.