Apache Redirect to Secure Link

If you have a directory that you want to force users into an SSL connection, the easiest way is to use a .htaccess file if your host allows it. The following will force any page to redirect to https:// if they aren’t on it already. RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} If you want to exclude a directory or filename specifically, then just add in another rewrite condition as shown...

Read More