Our blog
Htaccess Force SSL with Redirect (Non Standard SSL Port Compatible)
Check out this little snippet of htaccess code to force SSL usage. Works regardless of port.
-
RewriteEngine On
-
RewriteCond %{HTTPS} off
-
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
More...
x + 3 - Naming a .htaccess File in Windows
Movable Type Monday: Comment via Twitter and .htaccess Hacks | The ...
Slackware Linux, Apache2, MySQL, PHP, SSL | Vlad's and Alice's Blog
How Does Secure Socket Layer (SSL) Work? | LuxSci FYI
Quick Tomcat https SSL Config | /home/nick
More Reading:
2 Comments
|
Why is the RewriteCond "off" ?? shouldn't it be "on" instead? I am new to this so please bear with me |
|
The condition bit is checking for the situation when we should do the redirect so logically its saying, if NOT https, then redirect to https |
RSS Feed
Jim
August 25th, 2010