Skip to content

Commit 9ba78a5

Browse files
authored
Merge pull request #1062 from shreesh-webkul/gli-2092
Updated: htaccess files comptible with apache 2.2 and 2.4
2 parents 4dd3fee + 13aa486 commit 9ba78a5

File tree

35 files changed

+357
-76
lines changed

35 files changed

+357
-76
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ composer.lock
5353

5454
img/**
5555
!/img/404.gif
56+
!/img/.htaccess
5657
!/img/admin/
5758
!/img/admin/*.gif
5859
!/img/admin/*.png

admin/backups/.htaccess

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1-
Order deny,allow
2-
Deny from all
1+
# Apache 2.2
2+
<IfModule !mod_authz_core.c>
3+
Order deny,allow
4+
Deny from all
5+
</IfModule>
6+
7+
# Apache 2.4
8+
<IfModule mod_authz_core.c>
9+
Require all denied
10+
</IfModule>

admin/export/.htaccess

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1-
Order deny,allow
2-
Deny from all
1+
# Apache 2.2
2+
<IfModule !mod_authz_core.c>
3+
Order deny,allow
4+
Deny from all
5+
</IfModule>
6+
7+
# Apache 2.4
8+
<IfModule mod_authz_core.c>
9+
Require all denied
10+
</IfModule>

admin/import/.htaccess

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1-
Order deny,allow
2-
Deny from all
1+
# Apache 2.2
2+
<IfModule !mod_authz_core.c>
3+
Order deny,allow
4+
Deny from all
5+
</IfModule>
6+
7+
# Apache 2.4
8+
<IfModule mod_authz_core.c>
9+
Require all denied
10+
</IfModule>

admin/tabs/.htaccess

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1-
Order deny,allow
2-
Deny from all
1+
# Apache 2.2
2+
<IfModule !mod_authz_core.c>
3+
Order deny,allow
4+
Deny from all
5+
</IfModule>
6+
7+
# Apache 2.4
8+
<IfModule mod_authz_core.c>
9+
Require all denied
10+
</IfModule>

classes/.htaccess

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1-
Order deny,allow
2-
Deny from all
1+
# Apache 2.2
2+
<IfModule !mod_authz_core.c>
3+
Order deny,allow
4+
Deny from all
5+
</IfModule>
6+
7+
# Apache 2.4
8+
<IfModule mod_authz_core.c>
9+
Require all denied
10+
</IfModule>

config/.htaccess

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1-
Order deny,allow
2-
Deny from all
1+
# Apache 2.2
2+
<IfModule !mod_authz_core.c>
3+
Order deny,allow
4+
Deny from all
5+
</IfModule>
6+
7+
# Apache 2.4
8+
<IfModule mod_authz_core.c>
9+
Require all denied
10+
</IfModule>

config/xml/.htaccess

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1-
Order deny,allow
2-
Deny from all
1+
# Apache 2.2
2+
<IfModule !mod_authz_core.c>
3+
Order deny,allow
4+
Deny from all
5+
</IfModule>
6+
7+
# Apache 2.4
8+
<IfModule mod_authz_core.c>
9+
Require all denied
10+
</IfModule>

docs/.htaccess

+10-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1-
Deny from ALL
1+
# Apache 2.2
2+
<IfModule !mod_authz_core.c>
3+
Order deny,allow
4+
Deny from all
5+
</IfModule>
6+
7+
# Apache 2.4
8+
<IfModule mod_authz_core.c>
9+
Require all denied
10+
</IfModule>

docs/csv_import/.htaccess

+10-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1-
Allow from ALL
1+
# Apache 2.2
2+
<IfModule !mod_authz_core.c>
3+
Order allow,deny
4+
Allow from ALL
5+
</IfModule>
6+
7+
# Apache 2.4
8+
<IfModule mod_authz_core.c>
9+
Require all granted
10+
</IfModule>

download/.htaccess

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1-
Order deny,allow
2-
Deny from all
1+
# Apache 2.2
2+
<IfModule !mod_authz_core.c>
3+
Order deny,allow
4+
Deny from all
5+
</IfModule>
6+
7+
# Apache 2.4
8+
<IfModule mod_authz_core.c>
9+
Require all denied
10+
</IfModule>

img/.htaccess

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Apache 2.2
2+
<IfModule !mod_authz_core.c>
3+
Order deny,allow
4+
Deny from all
5+
<Files ~ "(?i)^.*\.(jpg|jpeg|gif|png|bmp|tiff|svg|pdf|mov|mpeg|mp4|avi|mpg|wma|flv|webm|ico|webp|avif)$">
6+
Allow from all
7+
</Files>
8+
</IfModule>
9+
10+
# Apache 2.4
11+
<IfModule mod_authz_core.c>
12+
Require all denied
13+
<Files ~ "(?i)^.*\.(jpg|jpeg|gif|png|bmp|tiff|svg|pdf|mov|mpeg|mp4|avi|mpg|wma|flv|webm|ico|webp|avif)$">
14+
Require all granted
15+
</Files>
16+
</IfModule>

img/cms/.htaccess

-8
This file was deleted.

log/.htaccess

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
1-
Order deny,allow
2-
Deny from all
1+
# Apache 2.2
2+
<IfModule !mod_authz_core.c>
3+
Order deny,allow
4+
Deny from all
5+
</IfModule>
6+
7+
# Apache 2.4
8+
<IfModule mod_authz_core.c>
9+
Require all denied
10+
</IfModule>
11+

mails/.htaccess

+16-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
1-
Order deny,allow
2-
Deny from all
3-
<FilesMatch "\.(html|txt)$">
4-
Allow from all
5-
</FilesMatch>
1+
# Apache 2.2
2+
<IfModule !mod_authz_core.c>
3+
Order deny,allow
4+
Deny from all
5+
<FilesMatch "\.(html|txt)$">
6+
Allow from all
7+
</FilesMatch>
8+
</IfModule>
9+
10+
# Apache 2.4
11+
<IfModule mod_authz_core.c>
12+
Require all denied
13+
<FilesMatch "\.(html|txt)$">
14+
Require all granted
15+
</FilesMatch>
16+
</IfModule>

modules/.htaccess

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1-
<FilesMatch "\.tpl$">
2-
Deny from all
1+
<FilesMatch "(\.tpl|config\.xml|config_([a-z]+)\.xml)$">
2+
# Apache 2.2
3+
<IfModule !mod_authz_core.c>
4+
Order deny,allow
5+
Deny from all
6+
</IfModule>
7+
8+
# Apache 2.4
9+
<IfModule mod_authz_core.c>
10+
Require all denied
11+
</IfModule>
312
</FilesMatch>
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1-
Deny from all
1+
# Apache 2.2
2+
<IfModule !mod_authz_core.c>
3+
Order deny,allow
4+
Deny from all
5+
</IfModule>
6+
7+
# Apache 2.4
8+
<IfModule mod_authz_core.c>
9+
Require all denied
10+
</IfModule>

override/.htaccess

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1-
Order deny,allow
2-
Deny from all
1+
# Apache 2.2
2+
<IfModule !mod_authz_core.c>
3+
Order deny,allow
4+
Deny from all
5+
</IfModule>
6+
7+
# Apache 2.4
8+
<IfModule mod_authz_core.c>
9+
Require all denied
10+
</IfModule>

pdf/.htaccess

+14-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1-
<FilesMatch "\.tpl$">
2-
Deny from all
3-
</FilesMatch>
1+
# Apache 2.2
2+
<IfModule !mod_authz_core.c>
3+
Order deny,allow
4+
<FilesMatch "\.tpl$">
5+
Deny from all
6+
</FilesMatch>
7+
</IfModule>
8+
9+
# Apache 2.4
10+
<IfModule mod_authz_core.c>
11+
<FilesMatch "\.tpl$">
12+
Require all denied
13+
</FilesMatch>
14+
</IfModule>

themes/.htaccess

+14-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1-
<FilesMatch "\.tpl$">
2-
Deny from all
3-
</FilesMatch>
1+
# Apache 2.2
2+
<IfModule !mod_authz_core.c>
3+
Order deny,allow
4+
<FilesMatch "\.tpl$">
5+
Deny from all
6+
</FilesMatch>
7+
</IfModule>
8+
9+
# Apache 2.4
10+
<IfModule mod_authz_core.c>
11+
<FilesMatch "\.tpl$">
12+
Require all denied
13+
</FilesMatch>
14+
</IfModule>

tools/geoip/.htaccess

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1-
Order deny,allow
2-
Deny from all
1+
# Apache 2.2
2+
<IfModule !mod_authz_core.c>
3+
Order deny,allow
4+
Deny from all
5+
</IfModule>
6+
7+
# Apache 2.4
8+
<IfModule mod_authz_core.c>
9+
Require all denied
10+
</IfModule>

tools/htmlpurifier/.htaccess

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1-
Order deny,allow
2-
Deny from all
1+
# Apache 2.2
2+
<IfModule !mod_authz_core.c>
3+
Order deny,allow
4+
Deny from all
5+
</IfModule>
6+
7+
# Apache 2.4
8+
<IfModule mod_authz_core.c>
9+
Require all denied
10+
</IfModule>

tools/http_build_url/.htaccess

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1-
Order deny,allow
2-
Deny from all
1+
# Apache 2.2
2+
<IfModule !mod_authz_core.c>
3+
Order deny,allow
4+
Deny from all
5+
</IfModule>
6+
7+
# Apache 2.4
8+
<IfModule mod_authz_core.c>
9+
Require all denied
10+
</IfModule>

tools/js_minify/.htaccess

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1-
Order deny,allow
2-
Deny from all
1+
# Apache 2.2
2+
<IfModule !mod_authz_core.c>
3+
Order deny,allow
4+
Deny from all
5+
</IfModule>
6+
7+
# Apache 2.4
8+
<IfModule mod_authz_core.c>
9+
Require all denied
10+
</IfModule>

tools/minify_html/.htaccess

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1-
Order deny,allow
2-
Deny from all
1+
# Apache 2.2
2+
<IfModule !mod_authz_core.c>
3+
Order deny,allow
4+
Deny from all
5+
</IfModule>
6+
7+
# Apache 2.4
8+
<IfModule mod_authz_core.c>
9+
Require all denied
10+
</IfModule>

tools/mobile_Detect/.htaccess

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1-
Order deny,allow
2-
Deny from all
1+
# Apache 2.2
2+
<IfModule !mod_authz_core.c>
3+
Order deny,allow
4+
Deny from all
5+
</IfModule>
6+
7+
# Apache 2.4
8+
<IfModule mod_authz_core.c>
9+
Require all denied
10+
</IfModule>

tools/parser_sql/.htaccess

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1-
Order deny,allow
2-
Deny from all
1+
# Apache 2.2
2+
<IfModule !mod_authz_core.c>
3+
Order deny,allow
4+
Deny from all
5+
</IfModule>
6+
7+
# Apache 2.4
8+
<IfModule mod_authz_core.c>
9+
Require all denied
10+
</IfModule>

tools/pear/.htaccess

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1-
Order deny,allow
2-
Deny from all
1+
# Apache 2.2
2+
<IfModule !mod_authz_core.c>
3+
Order deny,allow
4+
Deny from all
5+
</IfModule>
6+
7+
# Apache 2.4
8+
<IfModule mod_authz_core.c>
9+
Require all denied
10+
</IfModule>

tools/profiling/.htaccess

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1-
Order deny,allow
2-
Deny from all
1+
# Apache 2.2
2+
<IfModule !mod_authz_core.c>
3+
Order deny,allow
4+
Deny from all
5+
</IfModule>
6+
7+
# Apache 2.4
8+
<IfModule mod_authz_core.c>
9+
Require all denied
10+
</IfModule>

0 commit comments

Comments
 (0)