1
0
mirror of https://github.com/insomniafi/extra synced 2025-10-13 16:03:22 +00:00
Files
insomniafi-extra/.htaccess
2025-10-09 15:40:17 +03:00

23 lines
544 B
ApacheConf

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteOptions IgnoreInherit
RewriteEngine On
RewriteCond %{ENV:HTTPS} !on
RewriteCond %{REQUEST_URI} !^/?\.well-known/acme-challenge/
RewriteRule (.*) https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [NC,L,QSA]
</IfModule>
<IfModule mod_autoindex.c>
IndexIgnore */*
Options -Indexes
</IfModule>
<IfModule mod_alias.c>
RedirectMatch 403 ^/.git(/.*)?$
RedirectMatch 403 ^/datastore(/.*)?$
</IfModule>