-
Notifications
You must be signed in to change notification settings - Fork 20
/
.htaccess
104 lines (76 loc) · 3.05 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
SetEnv APPLICATION_ENV development
<IfModule mod_rewrite.c>
##################################
## Enable rewrites
RewriteEngine on
# RewriteBase /axis/
RewriteRule ^min\.php min.php [L]
RewriteRule !\.(js|ico|swf|gif|jpg|png|css|xml|txt)$ index.php [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
## To redirect all users to the site WITH the 'www.' prefix,
## (http://example.com/... will be redirected to http://www.example.com/...)
## adapt and uncomment the following:
# 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,
## (http://www.example.com/... will be redirected to http://example.com/...)
## uncomment and adapt the following:
# RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
# RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
##################################
## Server specific fixes
##################################
## GoDaddy hosting options
# Options -MultiViews
## 1and1 hosting options
# AddType x-mapp-php5 .php
# DirectoryIndex index.php
# Options -MultiViews