-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.htaccess
42 lines (37 loc) · 1.18 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
###
## Zula Framework .htaccess file
###
### Override some PHP settings that can't be done at runtime
<IfModule mod_php5.c>
php_flag magic_quotes_gpc off
php_flag register_globals off
</IfModule>
### Rewrite Rules, used with 'SEF' routers
<IfModule mod_rewrite.c>
RewriteEngine on
# The following RewriteBase needs changing if Zula Framework
# is running within a subdirectory (can also be the cause of
# 500/Internal Server Errors).
#
# e.g. running in a subdir of /zula-framework use the following:
# RewriteBase /zula-framework
#
#RewriteBase /
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA]
</IfModule>
### Stop people accessing various directories
<IfModule mod_alias.c>
# If running in a subdirectory you will need to change "^/" to
# "^/subdirectory/"
#
# e.g. running in subdir of /zula-framework:
# RedirectMatch 403 ^/zula-framework/tmp/js?$
#
RedirectMatch 403 ^/application/(?!(modules/.*?/assets/?))
RedirectMatch 403 ^/assets/uploads/media/(?!(wm\.png|wm_thumb\.png))
RedirectMatch 403 ^/config/.*?/?
RedirectMatch 403 ^/tmp/(?:cache|media|sysinfo|uploader)/?
RedirectMatch 403 ^/tmp/js/?$
</IfModule>