Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


force_https_by_directory

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_by_directory.txt · Last modified: 2008/08/02 23:29 by juckins