15 lines
317 B
ApacheConf
15 lines
317 B
ApacheConf
RedirectMatch 404 ^/.git/
|
|
|
|
<Files ~ "\.json$">
|
|
Require all denied
|
|
</Files>
|
|
|
|
RewriteEngine on
|
|
|
|
# https://wiki.uberspace.de/webserver:htaccess
|
|
RewriteCond %{HTTPS} !=on
|
|
RewriteCond %{ENV:HTTPS} !=on
|
|
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
|
|
|
|
RewriteRule ^([^./]+)/?$ /index.php?action=$1 [L,NC]
|