lemansky

Untitled

Mar 24th, 2022 (edited)
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
  2. RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
  3.  
  4. RewriteCond %{HTTPS} !=on
  5. RewriteRule ^ https://%{HTTP_HOST}/%1 [R=301,L]
  6. # public/.htacess
Add Comment
Please, Sign In to add comment