-
Notifications
You must be signed in to change notification settings - Fork 9
/
.htaccess
61 lines (48 loc) · 2.2 KB
/
.htaccess
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
RewriteEngine On
#for nextbook auth
RewriteRule ^nextbook/api/auth$ nextbook/auth.php
#for new UI
RewriteRule ^home$ tiny4cocoa/public/index.php
RewriteRule ^home/(.*)$ tiny4cocoa/public/index.php
RewriteRule ^apple$ tiny4cocoa/public/index.php
RewriteRule ^apple/(.*)$ tiny4cocoa/public/index.php
RewriteRule ^os$ tiny4cocoa/public/index.php
RewriteRule ^os/(.*)$ tiny4cocoa/public/index.php
RewriteRule ^backend(.*)$ tiny4cocoa/public/index.php
RewriteRule ^jobs(.*)$ tiny4cocoa/public/index.php
RewriteRule ^thread/(.*)$ tiny4cocoa/public/index.php
RewriteRule ^user(.*)$ tiny4cocoa/public/index.php
RewriteRule ^user/(.*)$ tiny4cocoa/public/index.php
RewriteRule ^faq/(.*)$ tiny4cocoa/public/index.php
RewriteRule ^sitemap/(.*)$ tiny4cocoa/public/index.php
RewriteRule ^newspool/(.*)$ tiny4cocoa/public/index.php
RewriteRule ^sendmail/(.*)$ tiny4cocoa/public/index.php
RewriteRule ^crontab/(.*)$ tiny4cocoa/public/index.php
RewriteRule ^stat(.*)$ tiny4cocoa/public/index.php
RewriteRule ^stat/(.*)$ tiny4cocoa/public/index.php
RewriteRule ^help(.*)$ tiny4cocoa/public/index.php
RewriteRule ^help/(.*)$ tiny4cocoa/public/index.php
RewriteRule ^static/(.*)/$ tiny4cocoa/public/index.php
RewriteRule ^static/(.*)$ tiny4cocoa/public/index.php
RewriteRule ^homeadmin/(.*) tiny4cocoa/public/index.php
RewriteRule ^playground$ tiny4cocoa/public/index.php
RewriteRule ^playground/(.*)$ tiny4cocoa/public/index.php
#transfer form discuz!
RewriteCond %{QUERY_STRING} action=nav
RewriteRule ^misc\.php$ http://tiny4cocoa.com/thread/new/
RewriteCond %{QUERY_STRING} action=newthread
RewriteRule ^post\.php$ http://tiny4cocoa.com/thread/new/
#for discuz
RewriteRule ^archiver/((fid|tid)-[\w\-]+\.html)$ archiver/index.php?$1
RewriteRule ^forum-([0-9]+)-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2
#新FAQ区
RedirectMatch 301 ^/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ /faq/show/$1/
RewriteRule ^space-(username|uid)-(.+)\.html$ space.php?$1=$2
RewriteRule ^tag-(.+)\.html$ tag.php?name=$1
#for doc
RewriteRule ^doc/$ tiny4wiki/index.php
RewriteRule ^doc$ tiny4wiki/index.php
RewriteRule ^doc/(.+)/$ tiny4wiki/index.php?act=show&wiki=$1
RewriteRule ^doc/(.+)$ tiny4wiki/index.php?act=show&wiki=$1
deny from 112.67.185.219
deny from 139.189.42.29