Wednesday, May 30, 2012

Make the url from http to https using htaccess file

You have to upload a .htaccess file to the root of your web site with following code


<IfModule mod_rewrite.c>

RewriteEngine on

RewriteCond %{SERVER_PORT} ^80$

RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]

</IfModule>

No comments:

Post a Comment