How To Redirect to https in Apache Using mod_rewrite

Published Date Author: , Posted November 17th, 2017 at 8:08:55am
1
2
3
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.