Advertisement
Fany_VanDaal

přesměrování na https s www

Apr 28th, 2020
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. RewriteEngine On
  2.  
  3. # all redirection HTTP -> HTTPS
  4. RewriteCond %{HTTPS} off
  5. RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
  6.  
  7. # redirection no www -> https://www.
  8. RewriteCond %{HTTP_HOST} !^www\. [NC]
  9. RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement