Advertisement
Guest User

HTTPS

a guest
Jul 22nd, 2020
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. RewriteEngine on
  2.  
  3. RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
  4. RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
  5.  
  6. RewriteCond %{ENV:HTTPS} !on
  7. RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement