Forcing an SSL Redirect in Apache
If you’ve ever needed to ensure that users are accessing a folder using SSL, you can use the following mod_rewrite snippet to achieve this:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}









No Comments Yet