We Recommend

Pro Apache Pro Apache
In addition to installation, maintenance, and deployment, the book demonstrates how to configure Apache to use Perl, PHP, and Python as server-side scripting languages. And unlike other books on Apache, Pro Apache provides comprehensive information on both major revisions - 1.3 and 2.0 - of the software.


Posted By

iTony on 05/13/08


Tagged

htaccess apache security ssl https


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

basicmagic


force SSL in your site


Published in: Apache 


  1. RewriteEngine On
  2. RewriteCond %{SERVER_PORT} 80
  3. RewriteRule ^(.*)$ https://domain.com/$1 [R,L]

Report this snippet 

You need to login to post a comment.