Skip to content

Commit

Permalink
[.htaccess] Make them also compatible for Apache 2.4+
Browse files Browse the repository at this point in the history
  • Loading branch information
pH-7 committed Apr 5, 2022
1 parent fa62fed commit a811d8f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 5 deletions.
9 changes: 6 additions & 3 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
Options -MultiViews -Indexes
Options +FollowSymLinks

<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
# Disable Directory Browsing
Options -MultiViews -Indexes
</IfModule>
Options +FollowSymLinks

RewriteEngine On

## Uncomment "#RewriteBase /" below (remove "#") if the website is installed in a folder, and then add the folder name after the slash "/"
Expand Down
10 changes: 9 additions & 1 deletion app/.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 templates/.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 a811d8f

Please sign in to comment.