This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/main/.htaccess

52 lines
1.7 KiB
ApacheConf
Raw Normal View History

2015-04-01 15:56:51 +00:00
# Block access to every file starting with a dot
<Files ".*">
Require all denied
</Files>
# Set Error documents
ErrorDocument 404 /404.php
ErrorDocument 403 /404.php
ErrorDocument 401 /404.php
# Rewrite Stuff
RewriteEngine on
RewriteBase /
Options +FollowSymLinks -Indexes
# Rewrite Rules
RewriteRule ^feedback?/?$ http://forum.flash.moe/viewforum.php?f=22
RewriteRule ^credits?/?$ credits.php
RewriteRule ^index?/?$ index.php
2015-04-19 13:00:32 +00:00
RewriteRule ^login?/?$|logout?/?$|activate?/?$|register?/?$|forgotpassword?/?|authenticate?/?$ authenticate.php
2015-05-03 16:25:57 +00:00
RewriteRule ^donate?/?$|support?/?$ donate.php
RewriteRule ^contact?/?$ infopage.php?r=contact
2015-04-26 16:05:13 +00:00
RewriteRule ^changelog?/?$ changelog.php
2015-04-30 14:12:49 +00:00
RewriteRule ^faq?/?$ faq.php
2015-04-05 16:24:07 +00:00
2015-04-01 17:25:14 +00:00
## Info pages
RewriteRule ^r/([a-z]+)$ infopage.php?r=$1
2015-04-02 14:21:37 +00:00
## News
2015-04-05 16:35:00 +00:00
RewriteRule ^news?/?$ news.php
2015-04-02 14:21:37 +00:00
RewriteRule ^news/([0-9]+)$ news.php?id=$1
RewriteRule ^news.xml$ news.php?xml
2015-04-27 21:07:48 +00:00
## Members
RewriteRule ^members?/?$ members.php
RewriteRule ^members/([a-z]+)?/?$ members.php?sort=$1
RewriteRule ^members/([0-9]+)?/?$ members.php?rank=$1
RewriteRule ^members/p([0-9]+)?/?$ members.php?page=$1
RewriteRule ^members/([a-z]+)/([0-9]+)?/?$ members.php?sort=$1&rank=$2
RewriteRule ^members/([0-9]+)/p([0-9]+)?/?$ members.php?rank=$1&page=$2
RewriteRule ^members/([a-z]+)/p([0-9]+)?/?$ members.php?sort=$1&page=$2
RewriteRule ^members/([a-z]+)/([0-9]+)/p([0-9]+)?/?$ members.php?sort=$1&rank=$2&page=$3
2015-04-25 20:08:44 +00:00
## Profiles
RewriteRule ^u$|u/$ profile.php
RewriteRule ^u/([A-Za-z0-9_-\s\.]+)?/?$ profile.php?u=$1
RewriteRule ^u/([A-Za-z0-9_-\s\.]+)/api?/?$ profile.php?data
2015-04-01 15:56:51 +00:00
# Serving Images
2015-04-25 20:08:44 +00:00
RewriteRule ^a/([0-9]+)$|a/([0-9]+).png$ imageserve.php?m=avatar&u=$1
RewriteRule ^bg/([0-9]+)$|bg/([0-9]+).png$ imageserve.php?m=background&u=$1