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