Re: forwarding http to https
Hi moremoney365,
The fastest way is to add the following lines to your .htaccess:
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [L,NC,QSA,R=301]
This will keep the original require uri/url path as well which is more convenient for your users. Note the R=301 is important. It tells apache to redirect your user with the HTTP Status Code 301. 301 tells the browser (and search engines) that in the future they should go straight to the HTTPS version. This will stop the HTTP version of your site showing up in search engines and will contribute any HTTP page ranks to your HTTPS site.
|