-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
36 lines (30 loc) · 1023 Bytes
/
.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
#<Files sub.php>
# Order Deny,Allow
# Deny from All
#</Files>
# Order sets which order the deny and allow directives will be executes in
# There is a three pass control system, the first pass applies the directive as the first
# argument in order, the second pass applies the second directive, and the third pass appies
# to anything not covered in the first two passes
# Later passes overwrite earlier passes
# The following example Allows from all
# Allows comes second and takes precedence.
#Order Deny,Allow
#Deny From All
#Allow From All
# Deny will take precedence and overwrite the initial permission
#Order Allow,Deny
#Allow From All
# This will block access to all php files
#<files app/*.php>
# Deny from All
#</Files>
# Block access to all files in app folder
RedirectMatch 403 ^.*/app/.*
RedirectMatch 403 ^.*/lib/.*
# Enable Rewrite engine
RewriteEngine on
# Check for existing files and folders
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L]