My current website url is: http://www.example.com and I will release a completely new website that will use a SSL Certificate and because it’s a full new website all the url’s will be new and different from the “old” website. According to the hosting service, they told me to use the following lines on my .htaccess file:
Code: Select all
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
Code: Select all
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Thanks