diff options
Diffstat (limited to '.htaccess')
-rw-r--r-- | .htaccess | 22 |
1 files changed, 12 insertions, 10 deletions
@@ -1,24 +1,26 @@ 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
-
+ErrorDocument 400 http://www.mazetd.4xg.net/errors.php?error=400
+ErrorDocument 401 http://www.mazetd.4xg.net/errors.php?error=401
+ErrorDocument 403 http://www.mazetd.4xg.net/errors.php?error=403
+ErrorDocument 404 http://www.mazetd.4xg.net/errors.php?error=404
+ErrorDocument 500 http://www.mazetd.4xg.net/errors.php?error=500
RewriteEngine on
RewriteBase /
+# Incase someone randomly put .html at the end.
RewriteRule ^([a-z]+)\.html$ /?page=$1 [R,L]
-# // For later use, when we get a domain that we want.
+# Maintains www
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
+# GetMap Re-write
+RewriteRule ^map/(.*)$ /ajax/maps\.ajax\.php?mapid=$1 [QSA,NC]
+
+
+# CSS and JS cache for 480 weeks
<filesMatch "\.(css|js)$">
Header set Cache-Control "max-age=290304000, public"
</filesMatch>
|