about summary refs log blame commit diff stats
path: root/.htaccess
blob: 7304983165f1ba784f9517ef9f35a832221fbf34 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                
 
                                                                                          
                

                                                        



                                                                           
                                                            









                                                                  
                                                      




                                                               

                                                
ErrorDocument 404 /error/404.php

# Remember, if you change this file, make sure to update getRewriteURL() in functions.php!

RewriteEngine On

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

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

RewriteRule ^$ /index.php?area=blog [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]