force_https_ssl_on_a_website
This is an old revision of the document!
Force HTTPS/SSL on a website
Using .htaccess:
cd to directory you want to protect and edit .htaccess such as the following:
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
-or-
SSLRequireSSL
then:
service httpd restart
force_https_ssl_on_a_website.1742510279.txt.gz · Last modified: 2025/03/20 18:37 by juckins