This commit is contained in:
flash 2015-04-05 18:35:00 +02:00
parent 4d987207ad
commit 579971f497

View file

@ -14,16 +14,18 @@ RewriteBase /
Options +FollowSymLinks -Indexes
# Rewrite Rules
# Remove .php from the url
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
RewriteRule ^feedback?/? http://forum.flash.moe/viewforum.php?f=22
RewriteRule ^credits?/? credits.php
RewriteRule ^index?/? index.php
RewriteRule ^login|register|forgotpassword?/? authenticate.php
RewriteRule ^donate?/? donate.php
RewriteRule ^contact?/? contact.php
## Info pages
RewriteRule ^r/([a-z]+)$ infopage.php?r=$1
## News
RewriteRule ^news?/?$ news.php
RewriteRule ^news/([0-9]+)$ news.php?id=$1
RewriteRule ^news.xml$ news.php?xml