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