Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RewriteEngine On
- # Force www
- RewriteCond %{HTTP_HOST} !^$
- RewriteCond %{HTTP_HOST} !^www\. [NC]
- RewriteCond %{HTTPS}s ^on(s)|
- RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
- # Force SSL
- RewriteCond %{HTTPS} off
- RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=302,L,NE]
- RewriteBase /
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^(.*)/$ p.php?q=$1 [QSA,L]
- RewriteRule ^$ p.php?q=index [QSA,L]
- ErrorDocument 403 /404.html
- ErrorDocument 404 /403.shtml
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement