Advertisement
Guest User

Untitled

a guest
Sep 9th, 2018
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. RewriteEngine On
  2. AddType text/css .css
  3. RewriteCond %{HTTPS} off
  4. RewriteCond %{HTTP_HOST} ^www\. [NC]
  5. RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
  6.  
  7. # redirect http(s)://example.com to https://www.example.com
  8. RewriteCond %{HTTP_HOST} !^www\. [NC]
  9. RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
  10.  
  11. RewriteRule . index.php [L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement