Thursday, June 7, 2012

Redirect to https using .htaccess

Create .htaccess file to redirect site to https
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

No comments: