diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2013-01-31 04:10:59 -0800 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2013-01-31 04:10:59 -0800 |
commit | 27f1a758f0f312e6dedb18f47ce86a6fd1d05d12 (patch) | |
tree | 05dce0efa9ccede3b84437ce067152ac7cf313f5 /.htaccess | |
parent | 2fb5da215a7b286b71f8c4d0126c72a06e41935e (diff) | |
download | pathery-27f1a758f0f312e6dedb18f47ce86a6fd1d05d12.tar.xz |
Error logging. .htaccess cacheing. Modified doredirect to use $mydomain
Diffstat (limited to '.htaccess')
-rw-r--r-- | .htaccess | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..3bf8b20 --- /dev/null +++ b/.htaccess @@ -0,0 +1,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>
\ No newline at end of file |