Cybernet Web Design - Web Design & Linux Server Administration
How to force to https - Printable Version

+- Cybernet Web Design - Web Design & Linux Server Administration (https://www.cybernetwebdesign.com)
+-- Forum: Web Design (https://www.cybernetwebdesign.com/Forum-Web-Design)
+--- Forum: .htaccess (https://www.cybernetwebdesign.com/Forum-htaccess)
+--- Thread: How to force to https (/Thread-How-to-force-to-https)



How to force to https - cybernetwebdesign - 05-12-2016

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