1234567891011121314 |
- RewriteEngine on
- RewriteCond %{HTTPS} !=on
- RewriteCond %{HTTP_HOST} !=localhost
- RewriteCond %{REQUEST_URI} !^.*(jpg|png|gif)$
- RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
- RewriteCond %{HTTP_HOST} !^www\.
- RewriteCond %{HTTP_HOST} !=localhost
- RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
- <Files ~ "\.md$">
- deny from all
- </Files>
|