summary refs log tree commit diff stats
path: root/.htaccess
blob: d8295fef455a807925aafe5d4ad5e1440672e759 (plain) (blame)
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
ErrorDocument 404 /error/404.php

RewriteEngine On

RewriteCond %{HTTP_HOST} ^www.fourisland.com [NC]
RewriteRule ^(.*)$ http://fourisland.com/$1 [R=301,NC,L]

RewriteRule ^blog/$ /index.php?area=blog [QSA,L]
RewriteRule ^blog/author/(.+).php /index.php?area=blog&author=$1 [QSA,L]
RewriteRule ^blog/tag/(.+).php /index.php?area=blog&tag=$1 [QSA,L]
RewriteRule ^blog/(.+)/ /index.php?area=blog&post=$1 [QSA,L]

RewriteRule ^wiki/$ /wiki/Main_Page [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^wiki/(.+) /w/index.php?title=$1 [QSA,L]

RewriteRule ^poll/$ /index.php?area=poll [QSA,L]
RewriteRule ^poll/(.+).php /index.php?area=poll&id=$1 [QSA,L]

RewriteRule ^quotes/$ /index.php?area=quotes [QSA,L]
RewriteRule ^quotes/(.+).php /index.php?area=quotes&act=$1 [QSA,L]

RewriteRule ^admin/$ /admin.php [QSA,L]
RewriteRule ^admin/(.+).php /admin.php?area=$1 [QSA,L]

RewriteRule ^error/$ /index.php?area=error [QSA,L]
RewriteRule ^error/(.+).php /index.php?area=error&id=$1 [QSA,L]

RewriteRule ^projects/ - [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+).php /index.php?area=$1 [QSA,L]