Skip to content

Commit

Permalink
Add HTTP to HTTPS rewrite rule.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWildHorse committed Oct 29, 2015
1 parent 44f6c1d commit 172c6f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .htaccess
Expand Up @@ -4,6 +4,10 @@ RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php

# HTTP to HTTPS rewrite
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

# pretty view rewrite rule for single page views of tabbed content. sytax will be.net/page/[param(which is the id of the php page we want]
RewriteRule ^/?page/([^/d]+)/?$ single.php?doc=$1 [L,QSA]

Expand Down

0 comments on commit 172c6f8

Please sign in to comment.