slimphp/Slim-Skeleton

.htaccess files

Vakrug opened this issue · 0 comments

There are those lines in both .htaccess files in slim-skeleton:

<Files .htaccess>
order allow,deny
deny from all
</Files>

This is an old apache 2.2 syntax that now is deprecated. I think one of the following should be done:

  • Replace these lines with this:
<Files ".htaccess">
    Require all denied
</Files>
  • Remove these lines completely. The default apache configuration already has
<Files ".ht*">
    Require all denied
</Files>

What do you think?