jwht-hrm-5.4/.htaccess
2023-05-02 20:42:00 +08:00

35 lines
632 B
ApacheConf

IndexIgnore *
Options All -Indexes
RedirectMatch 404 /\..*$
<Files log.txt>
order allow,deny
deny from all
</Files>
<Files *.log>
order allow,deny
deny from all
</Files>
<Files log*.txt>
order allow,deny
deny from all
</Files>
<Files *.yml>
order allow,deny
deny from all
</Files>
<FilesMatch "(\.(bak|config|dist|inc|swp|xml|sql|sh|xsl|conf|ini|json)|~)$">
## Apache 2.2
order allow,deny
deny from all
## Apache 2.4
# Require all denied
</FilesMatch>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule (/)?(build|lib|license|tests|test|apps|cache|config|data|log|plugins)(/.*)?$ - [F,NC]
</IfModule>