Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <IfModule mod_rewrite.c>
- RewriteEngine on
- # Force SSL
- RewriteCond %{HTTPS} off
- RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
- # Force subdomain
- RewriteCond %{HTTP_HOST} !^|SUB|\.|DOMAIN|$ [NC]
- RewriteRule ^(.*)$ https://|SUB|.|DOMAIN|/$1 [L,R=301]
- </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement