Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 10th, 2012  |  syntax: None  |  size: 0.22 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. redirect to https [closed]
  2. RewriteCond %{HTTP_HOST} ^example.com$ [NC]
  3. RewriteRule ^(.*)$ https://example.com/$1 [R=301,L]
  4.        
  5. RewriteEngine on
  6. RewriteCond %{HTTPS} off
  7. RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}