-
Notifications
You must be signed in to change notification settings - Fork 55
/
example.htaccess
32 lines (24 loc) · 985 Bytes
/
example.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
RewriteEngine on
RewriteCond %{HTTP_HOST} !^mod.haxor.fi$
RewriteRule ^(.*)$ http://mod.haxor.fi/%{REQUEST_URI} [R,L]
RewriteCond %{REQUEST_URI} ^/(.*)$
RewriteCond /var/www/modplay/mods/%1 -d
RewriteRule ^(.*)$ /?composer=%1 [L,QSA]
RewriteCond %{REQUEST_URI} ^/(.*)/mod.(.*)$
RewriteCond /var/www/modplay/mods/%1/mod.%2 -f
RewriteRule ^(.*)$ /?mod=%1/mod.%2 [L,QSA]
RewriteCond %{REQUEST_URI} ^/mod.(.*)$
RewriteCond /var/www/modplay/mods/mod.%1 -f
RewriteRule ^(.*)$ /?mod=mod.%1 [L,QSA]
RewriteCond %{REQUEST_URI} ^/(.*).mod$
RewriteCond /var/www/modplay/mods/%1.mod -f
RewriteRule ^(.*)$ /?mod=%1.mod [L,QSA]
RewriteCond %{REQUEST_URI} ^/(.*).s3m$
RewriteCond /var/www/modplay/mods/%1.s3m -f
RewriteRule ^(.*)$ /?mod=%1.s3m [L,QSA]
RewriteCond %{REQUEST_URI} ^/(.*).xm$
RewriteCond /var/www/modplay/mods/%1.xm -f
RewriteRule ^(.*)$ /?mod=%1.xm [L,QSA]
RewriteCond %{REQUEST_URI} ^/(.*).it$
RewriteCond /var/www/modplay/mods/%1.it -f
RewriteRule ^(.*)$ /?mod=%1.it [L,QSA]