This is post is now quite old and the the information it contains may be out of date or innacurate.

If you find any errors or have any suggestions to update the information please let us know or create a pull request on GitHub

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}


        <div style="font-size: .6em;"><a href="" rel="nofollow">Top 10 Wordpress .<b>htaccess</b> hacks |</a><br><a href="" rel="nofollow">x + 3 - Naming a .<b>htaccess</b> File in Windows</a><br><a href="" rel="nofollow">Movable Type Monday: Comment via Twitter and .<b>htaccess</b> Hacks | The <b>...</b></a><br><a href="" rel="nofollow">Slackware Linux, Apache2, MySQL, PHP, <b>SSL</b> | Vlad&#39;s and Alice&#39;s Blog</a><br><a href="" rel="nofollow">How Does <b>Secure Socket Layer</b> (<b>SSL</b>) Work? | LuxSci FYI</a><br><a href="" rel="nofollow">Quick Tomcat https <b>SSL</b> Config | /home/nick</a><br></div>