Skip to content

Commit

Permalink
Make .htaccess compatible with Apache 2.4+
Browse files Browse the repository at this point in the history
  • Loading branch information
pH-7 committed Apr 7, 2019
1 parent 96a29ce commit 56030cb
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
10 changes: 9 additions & 1 deletion application/.htaccess
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
Deny from all
# Apache >= 2.4
<IfModule mod_authz_core.c>
Require all denied
</IfModule>

# Apache <= 2.2
<IfModule !mod_authz_core.c>
Deny from all
</IfModule>
10 changes: 9 additions & 1 deletion application/cache/.htaccess
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
Deny from all
# Apache >= 2.4
<IfModule mod_authz_core.c>
Require all denied
</IfModule>

# Apache <= 2.2
<IfModule !mod_authz_core.c>
Deny from all
</IfModule>
10 changes: 9 additions & 1 deletion system/.htaccess
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
Deny from all
# Apache >= 2.4
<IfModule mod_authz_core.c>
Require all denied
</IfModule>

# Apache <= 2.2
<IfModule !mod_authz_core.c>
Deny from all
</IfModule>

0 comments on commit 56030cb

Please sign in to comment.