forked from azdcgo/axiscommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
112 lines (81 loc) · 3.26 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
SetEnv APPLICATION_ENV development
<IfModule mod_rewrite.c>
##################################
## Enable rewrites
RewriteEngine on
# RewriteBase /axis/
## See http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.introduction
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
## Remove trailing slash
# RewriteRule ^(.+)/$ $1 [R=301,L]
# RewriteRule ^(.+[^/])/$ http://%{HTTP_HOST}/$1 [R=301,L]
## To redirect all users to the site WITH the 'www.' prefix
# RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
# RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
## To redirect all users to the site WITHOUT the 'www.' prefix
# RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
# RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
### don't serve files from the next folders
RewriteCond %{REQUEST_URI} !^/(media|skin|js)/
RewriteRule ^.*$ index.php [NC,L]
</IfModule>
<IfModule mod_php5.c>
##################################
## Disable magic quotes
php_value magic_quotes_gpc off
##################################
## Description
# php_flag zlib.output_compression on
</IfModule>
<IfModule mod_headers.c>
##################################
## Client side caching
# <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
# Header set Cache-Control "public"
# Header set Expires "Thu, 15 Apr 2012 20:00:00 GMT"
# </FilesMatch>
</IfModule>
<IfModule mod_deflate.c>
##################################
## Compress output before sending
## http://httpd.apache.org/docs/2.0/mod/mod_deflate.html
# Add filter
# AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript
# Netscape 4.x has some problems...
# BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 have some more problems
# BrowserMatch ^Mozilla/4\.0[678] no-gzip
# MSIE masquerades as Netscape, but it is fine
# BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
# the above regex won't work. You can use the following
# workaround to get the desired effect:
# BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
# Don't compress images
# SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
# Make sure proxies don't deliver the wrong content
# Header append Vary User-Agent env=!dont-vary
</IfModule>
##################################
## Allow access by default
Order allow,deny
Allow from all
##################################
## http://developer.yahoo.com/performance/rules.html#etags
# FileETag none
## Default charset parameter to be added when a response content-type is text/plain or text/html
## http://httpd.apache.org/docs/2.0/mod/core.html#AddDefaultCharset
AddDefaultCharset Off
#AddDefaultCharset utf-8
##################################
## Server specific fixes
##################################
## GoDaddy hosting options
# Options -MultiViews
## 1and1 hosting options
# AddType x-mapp-php5 .php
# DirectoryIndex index.php
# Options -MultiViews