Files
faveo/public/.htaccess
Mathieu Aubin 0e78dce54d Apache Security Fix
Denies access to all dotfiles on Apache webserver.
2016-07-05 01:06:34 -04:00

23 lines
556 B
ApacheConf

<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
# Restrict access to DotFiles (like .htaccess, .env, .gitignore....)
# Do not remove if you are running Apache web server.
<FilesMatch "^\.">
Order allow,deny
Deny from all
</FilesMatch>