View Single Post
Old 10-14-2018, 03:13 PM  
Fenris Wolf
Confirmed User
 
Industry Role:
Join Date: Nov 2005
Posts: 1,021
Quote:
Originally Posted by Bladewire View Post
See if this works

RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]

RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
That did the trick. Thank you so much.
__________________
Email: fenris_wolf3000 (a t ) yah00 . c 0 m
Fenris Wolf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote