force www to non www
-
I need all traffic forced to “none www” when users type in a “www” they get redirected to https://www and a security error comes up in the browser because my SSL doesn’t support the www version of my domain.
here are my rules in my .htcaccess file
# BEGIN rlrssslReallySimpleSSL rsssl_version[2.2.12]
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on [NC]
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
</IfModule>
<IfModule mod_headers.c>
Header always set Strict-Transport-Security ‘max-age=31536000’ env=HTTPS
</IfModule>
# END rlrssslReallySimpleSSL
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘force www to non www’ is closed to new replies.