Advertisement
Fany_VanDaal

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

Apr 28th, 2020
73
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data Copied
Advertisement