Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


force_https_ssl_by_directory_with_.htaccess

This is an old revision of the document!


cd to directory you want to protect.

vi .htaccess

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

-or-

SSLRequireSSL

then:

service httpd restart
force_https_ssl_by_directory_with_.htaccess.1217875800.txt.gz ยท Last modified: 2008/08/04 14:50 by juckins