*/}}

.htaccess 368 B

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