summary refs log tree commit diff stats
path: root/.htaccess
blob: 9b841b17d741fafb4591ea364996bf6ce0081be3 (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
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/$ /index.php?area=admin [QSA,L]
RewriteRule ^admin/(.+).php /index.php?area=admin&page=$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]