Advertisement
krot

htaccess http redirect https

Nov 24th, 2020
459
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.10 KB | None | 0 0
  1. RewriteEngine On
  2. RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
  3. RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement