-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
executable file
·42 lines (26 loc) · 1.2 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
php_flag magic_quotes_gpc off
##############################
# PHP : Required variable changes required for eZ publish v2 && php v > 4.3.2?
##############################
php_flag register_globals on
php_flag register_long_arrays on
##############################
# .htaccess : mod_rewrite : rules for users who do not have access to apache configuration
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^/stats/store/(.*).gif$ ezstats/user/storestats.php [L]
RewriteRule ^/filemanager/filedownload/([^/]+)/(.*)$ ezfilemanager/files/$1 [T="application/oct-stream",L]
#by ip:
# RewriteCond %{HTTP_HOST} ^66\.42\.203\.110$
# RewriteRule !\.(ico|gif|css|jpg|png|js|jar)$ index.php
#by dns short: example.org
RewriteCond %{HTTP_HOST} ^example\.org$
RewriteRule !\.(ico|gif|css|jpg|png|js|jar)$ index.php
#by dns long: www.example.org
RewriteCond %{HTTP_HOST} ^www\.example\.org$
RewriteRule !\.(ico|gif|css|jpg|png|js|jar)$ index.php
#by dns admin: admin.example.org
RewriteCond %{HTTP_HOST} ^admin\.example\.org$
RewriteRule !\.(ico|gif|css|jpg|png|js|jar) index_admin.php
</IfModule>
##############################