*/}}

.htaccess 373 B

1234567891011121314
  1. RewriteEngine on
  2. RewriteCond %{HTTPS} !=on
  3. RewriteCond %{HTTP_HOST} !=localhost
  4. RewriteCond %{REQUEST_URI} !^.*(jpg|png|gif)$
  5. RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  6. RewriteCond %{HTTP_HOST} !^www\.
  7. RewriteCond %{HTTP_HOST} !=localhost
  8. RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  9. <Files ~ "\.md$">
  10. deny from all
  11. </Files>