-
Notifications
You must be signed in to change notification settings - Fork 2
/
.htaccess
22 lines (18 loc) · 1 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
RewriteEngine on
RewriteRule ^client.* - [L]
RewriteRule ^css/(.*)-[0-9]+(.[^0-9]*)$ /css/$1$2 [L]
# images
RewriteRule ^images/creature/(.*)\.png$ /monsterimage.php?url=data/sprites/monsters/$1.png&rewritten=true [L]
RewriteRule ^images/image/(.*)$ /image.php?img=$1&rewritten=true [L]
RewriteRule ^images/item/(.*)\.png$ /itemimage.php?url=data/sprites/items/$1.png&rewritten=true [L]
RewriteRule ^images/npc/(.*)\.png$ /monsterimage.php?url=data/sprites/npc/$1.png&rewritten=true [L]
RewriteRule ^images/outfit/(.*)\.png$ /createoutfit.php?outfit=$1&rewritten=true [L]
RewriteRule ^images/screenshot/(.*)$ /index.php?id=content/game/screenshot&file=$1&rewritten=true [L]
RewriteRule ^images/thumbnail/(.*)$ /thumbnail.php?img=$1&rewritten=true [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_URI} !^php5-fcgi
RewriteCond %{REQUEST_URI} !css/
RewriteCond %{QUERY_STRING} !rewriteurl
RewriteRule ^(.*)$ /index.php?rewriteurl=$1 [L,QSA]