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

Roshambo on 08/09/08


Tagged

modrewrite ssl https


Versions (?)


Force HTTPS with mod_rewrite


Published in: Apache 


  1. RewriteEngine on
  2. RewriteCond %{HTTPS} !On
  3. RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301]

Report this snippet 

You need to login to post a comment.