Force HTTPS with .htaccess

From Birnam Designs Wiki

Jump to: navigation, search

With an Apache/mod_rewrite system, you can demand that a page/pages/directory structure must be accessed via https:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule cgi-bin/.* https://%{HTTP_HOST}%{REQUEST_URI} [R]
Share This!
This page was last modified on 11 February 2010, at 19:56. This page has been accessed 413 times.