Forcing http to https and non-www. to www.
-
I saw this post already but I cant reply to it so I am starting another. I am trying to force all traffic:
From
https://example.com
https://www.example.com
https://www.example.comto
I think I have most of this except https://example.com is not forwarding currently. here is my htaccess configs:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]#Master Rule to chagne HTTP and WWW to HTTPS
RewriteEngine onRewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]What am I missing
The page I need help with: [log in to see the link]
- The topic ‘Forcing http to https and non-www. to www.’ is closed to new replies.