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