-
Notifications
You must be signed in to change notification settings - Fork 3
/
伪静态.txt
34 lines (24 loc) · 1.41 KB
/
伪静态.txt
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
<FilesMatch "\.(bak|inc|lib|sh|tpl|lbi|dwt|conf|pem)$">
order deny,allow
deny from all
</FilesMatch>
RewriteEngine On
RewriteBase /
<Files *>
Options -Indexes
</Files>
RewriteCond %{http_host} ^fangruan.com$ [nc]
RewriteRule ^(.*)$ http://www.fangruan.com/$1 [r=301,nc]
RewriteRule ^passport/$ /passport\.php [QSA,L]
RewriteRule ^passport/([a-zA-Z0-9_]+)$ /passport.\php?module=$1 [QSA,L]
RewriteRule ^passport/([a-zA-Z0-9_]+)?redirectUrl=(.*)$ /passport.\php?module=$1&redirectUrl=$2 [QSA,L]
RewriteRule ^member/$ /member\.php [QSA,L]
RewriteRule ^member/([a-zA-Z0-9_]+)$ /member.\php?module=$1 [QSA,L]
RewriteRule ^tour/([a-zA-Z0-9_]+)$ /tour.\php?view_uuid=$1 [QSA,L]
RewriteRule ^edit/$ /edit\.php [QSA,L]
RewriteRule ^edit/([a-zA-Z0-9_]+)$ /edit.\php?module=$1 [QSA,L]
RewriteRule ^add/$ /add\.php [QSA,L]
RewriteRule ^add/([a-zA-Z0-9_]+)$ /add.\php?module=$1 [QSA,L]
RewriteRule ^index\.html$ /index.\php [QSA,L]
RewriteRule ^([a-zA-Z0-9_]+)$ /index.\php?module=$1 [QSA,L]
RewriteRule ^people/([0-9]+)$ /index.\php?module=people&uid=$1 [QSA,L]