vilariel/remisesramallo/master/environments/dev/.htaccess
Options +FollowSymLinks
Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} !^public
RewriteCond %{REQUEST_URI} !.txt$
RewriteCond %{REQUEST_URI} !.xml$ [NC]
RewriteRule ^(.*)$ frontend/web/$1 [L]
</IfModule>
# Deny accessing below extensions
<Files ~ "(.json|.lock|.git)">
Order allow,deny
Deny from all
</Files>
# Deny accessing dot files
RewriteRule (^.|/.) - [F]
On Github License
Files