summaryrefslogtreecommitdiffstats
path: root/.htaccess
blob: 3bf8b20ccf3aa9d03096b97566c50fcbd21819d1 (plain)
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
AddType x-mapp-php5 .php


ErrorDocument 400 http://www.mazetd.4xg.net/error.php?error=400
ErrorDocument 401 http://www.mazetd.4xg.net/error.php?error=401
ErrorDocument 403 http://www.mazetd.4xg.net/error.php?error=403
ErrorDocument 404 http://www.mazetd.4xg.net/error.php?error=404
ErrorDocument 500 http://www.mazetd.4xg.net/error.php?error=500


RewriteEngine on
RewriteBase /
RewriteRule ^([a-z]+)\.html$ /?page=$1 [R,L]

# // For later use, when we get a domain that we want.
RewriteCond %{HTTP_HOST} ^mazetd.4xg\.net
RewriteRule (.*) http://www.mazetd.4xg.net/$1 [R,L]

RewriteRule ^([a-z]+)$ /index\.php?page=$1 [QSA,NC]

# 480 weeks
<filesMatch "\.(css|js)$">
Header set Cache-Control "max-age=290304000, public"
</filesMatch>


<ifModule mod_gzip.c>
  mod_gzip_on Yes
  mod_gzip_dechunk Yes
  mod_gzip_item_include file \.(txt|css|js)$
  mod_gzip_item_include handler ^cgi-script$
  mod_gzip_item_include mime ^text/.*
  mod_gzip_item_include mime ^application/x-javascript.*
  mod_gzip_item_exclude mime ^image/.*
  mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifModule>