Forcing SSL using Apache

All timestamps are based on your local time of:

  • If you don't have mod_rewrite installed, install it.

  • Add the following lines to the bottom of the httpd2.conf file:

RewriteEngine On
RewriteCond %{SERVER_PORT} !443
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R]

[ Add a new comment ]

(c) Kartikaya Gupta, 2004-2024. User comments owned by their respective posters. All rights reserved.
You are accessing this website via IPv4. Consider upgrading to IPv6!