Files
webtrees-docker/.htaccess
T

19 lines
496 B
ApacheConf

RewriteEngine On
# https://webtrees.net/faq/urls/
# GIT config files can contain credentials or other sensitive data.
RewriteRule \.git - [F]
# User data is stored here by default.
RewriteRule ^data(/|$) - [F]
# Nothing sensitive here, but there is no need to publish it.
RewriteRule ^app(/|$) - [F]
RewriteRule ^modules - [F]
RewriteRule ^resources(/|$) - [F]
RewriteRule ^vendor(/|$) - [F]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]