force_https_by_directory
Differences
This shows you the differences between two versions of the page.
| force_https_by_directory [2008/08/02 23:27] – created juckins | force_https_by_directory [2008/08/02 23:29] (current) – juckins | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | cd to directory you want to protect. | ||
| + | |||
| vi .htaccess | vi .htaccess | ||
| + | < | ||
| RewriteEngine On | RewriteEngine On | ||
| RewriteCond %{HTTPS} off | RewriteCond %{HTTPS} off | ||
| RewriteRule (.*) https:// | RewriteRule (.*) https:// | ||
| + | </ | ||
| -or- | -or- | ||
| + | < | ||
| SSLRequireSSL | SSLRequireSSL | ||
| + | </ | ||
| + | |||
| + | then: | ||
| - | restart | + | < |
| + | service | ||
| + | </ | ||
force_https_by_directory.txt · Last modified: by juckins
