-
Notifications
You must be signed in to change notification settings - Fork 62
/
.htaccess
61 lines (52 loc) · 1.87 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
##
## You may need to uncomment the following line for some hosting environments,
## if you have installed to a subdirectory, enter the name here also.
##
RewriteBase /
##
## Uncomment following lines to force HTTPS.
##
# RewriteCond %{HTTPS} off
# RewriteRule (.*) https://%{SERVER_NAME}/$1 [L,R=301]
##
## Blocked folders
##
RewriteRule ^bootstrap/.* index.php [L,NC]
RewriteRule ^config/.* index.php [L,NC]
RewriteRule ^vendor/.* index.php [L,NC]
RewriteRule ^storage/app/.* index.php [L,NC]
RewriteRule ^storage/logs/.* index.php [L,NC]
RewriteRule ^storage/framework/.* index.php [L,NC]
RewriteRule ^modules/.* index.php [L,NC]
RewriteRule ^themes/.* index.php [L,NC]
RewriteRule ^plugins/.* index.php [L,NC]
##
## Allowed folders
##
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} !/.well-known/*
#RewriteCond %{REQUEST_FILENAME} !/storage/app/public/.*
#RewriteCond %{REQUEST_FILENAME} !/themes/.*/(assets|resources)/.*
#RewriteCond %{REQUEST_FILENAME} !/plugins/.*/(assets|resources)/.*
#RewriteCond %{REQUEST_FILENAME} !/plugins/.*/(assets|resources)/.*
#RewriteCond %{REQUEST_FILENAME} !/public/jw-styles/.*/(juzaweb|themes|plugins)/.*
RewriteRule !^index.php index.php [L,NC]
##
## Block all PHP files, except index
##
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} \.php$
RewriteRule !^index.php index.php [L,NC]
##
## Standard routes
##
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^jw-styles/juzaweb/(.*|$) /public/jw-styles/juzaweb/$1 [NC,L]
RewriteRule ^storage/(.*|$) /storage/app/public/$1 [NC,L]
RewriteRule ^ index.php [L]
</IfModule>