Redirect browser to https (ssl)


RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
Redirect browser to https (ssl) Dev2Tricks 5 of 5
RewriteEngine On RewriteCond %{HTTPS} !on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Share this

Related Posts

Previous
Next Post »