How to force WWW into the url if domain.com is typed ? mod rewrite not working
-
In wp 2.6 and most webpages, a familiar mod rewrite would do the trick:
Options +Indexes
Options +FollowSymlinks
RewriteEngine onrewritecond %{http_host} ^domain.com
rewriteRule ^(.*) https://www.domain.com/$1 [R=301,L]Now in 2.8 it seems that nothing at all works, when someone tyes:
domain.com
this loads:
https://domain.com <- and looks all messed up, css not loading.
I need it to go to this:
https://www.domain.com <- which looks just fine
Again I have gotten it working on several wordpress sites using v2.6, but it wont work now as if by dark magic. The company CEO is emailing expletives into the support box, please help.
How can .htaccess redirects suddenly be choking now?
- The topic ‘How to force WWW into the url if domain.com is typed ? mod rewrite not working’ is closed to new replies.