-
Notifications
You must be signed in to change notification settings - Fork 431
/
httpd.ini
38 lines (35 loc) · 1.97 KB
/
httpd.ini
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
35
36
37
38
[ISAPI_Rewrite]
#CacheClockRate 3600
#RepeatLimit 32
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/dashboard $1/dashboard.php [L]
RewriteRule ^(.*)/forgot $1/forgot.php [L]
RewriteRule ^(.*)/favorites(/page/([0-9]*))? $1/favorites.php\?page=$3 [L]
RewriteRule ^(.*)/goto/([0-9]+)-([0-9]+) $1/goto.php\?topic_id=$2&post_id=$3 [L]
RewriteRule ^(.*)/json/([0-9a-z_\-]+) $1/json.php\?action=$2 [L]
RewriteRule ^(.*)/login(.*) $1/login.php$2 [L]
RewriteRule ^(.*)/manage $1/manage.php [L]
RewriteRule ^(.*)/new $1/new.php [L]
RewriteRule ^(.*)/notifications $1/notifications.php [L]
RewriteRule ^(.*)/oauth-([0-9]+) $1/oauth.php\?app_id=$2 [L]
RewriteRule ^(.*)/page/([0-9]+) $1/index.php\?page=$2 [L]
RewriteRule ^(.*)/register(.*) $1/register.php$2 [L]
RewriteRule ^(.*)/reply $1/reply.php [L]
RewriteRule ^(.*)/reset_password/(.*) $1/reset_password.php\?access_token=$2 [L]
RewriteRule ^(.*)/robots.txt $1/robots.php [L]
RewriteRule ^(.*)/search.xml $1/open_search.php [L]
RewriteRule ^(.*)/search/([^/]*)(/page/([0-9]*))? $1/search.php\?keyword=$2&page=$4 [L]
RewriteRule ^(.*)/settings $1/settings.php [L]
RewriteRule ^(.*)/sitemap-(topics|pages|tags|users|index)(-([0-9]+))?.xml $1/sitemap.php\?action=$2&page=$4 [L]
RewriteRule ^(.*)/statistics $1/statistics.php [L]
RewriteRule ^(.*)/t/([0-9]+)(-([0-9]*))?(.*) $1/topic.php\?id=$2&page=$4 [L]
RewriteRule ^(.*)/tag/([^/]*)(/page/([0-9]*))? $1/tag.php\?name=$2&page=$4 [L]
RewriteRule ^(.*)/tags/following(/page/([0-9]*))? $1/favorite_tags.php\?page=$3 [L]
RewriteRule ^(.*)/tags(/page/([0-9]*))? $1/tags.php\?page=$3 [L]
RewriteRule ^(.*)/u/(.*) $1/user.php\?username=$2 [L]
RewriteRule ^(.*)/users/following(/page/([0-9]*))? $1/favorite_users.php\?page=$3 [L]
RewriteRule ^(.*)/upload_controller(.*) $1/upload_controller.php$2 [L]
RewriteRule ^(.*)/view-(desktop|mobile)\?(.*) $1/view.php\?view=$2&$3 [L]
#IIS ErrorDocument
#RewriteRule ^/([0-9]{3})\.(php|asp|htm|html)$ /$1\.php