Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RewriteEngine On
- RewriteCond %{HTTPS} off
- RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
- RewriteEngine On
- RewriteBase /
- RewriteCond %{HTTP_HOST} !^www\. [NC]
- RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
- RewriteEngine On
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteRule ^(.*)$ https://%{HTTP_HOST} [L,R=301]
Advertisement
Add Comment
Please, Sign In to add comment