-
Notifications
You must be signed in to change notification settings - Fork 27
/
.htaccess
35 lines (27 loc) · 980 Bytes
/
.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
# 若无法进行正常操作 部分主机可能需要将下面一行最前面的注释符号(井号)删除
# RewriteBase /
IndexIgnore *
Options -Indexes
Options +FollowSymlinks
<Files invited>
# 拒绝从外部访问 invited 受邀列表
order allow,deny
deny from all
</Files>
<IfModule mod_rewrite.c>
RewriteEngine on
# 屏蔽蜘蛛
RewriteCond %{HTTP_USER_AGENT} (bot|spider) [NC]
RewriteRule . - [F,L]
# 若你的空间支持 SSL 请将下面各行最前面的注释符号(井号)删除
# 并将 t.orzdream.com 改为你的奶瓶腿地址
# RewriteCond %{HTTP_HOST} !=t.orzdream.com [NC,OR]
# RewriteCond %{HTTPS} !=on [NC]
# RewriteRule ^(.*)$ https://t.orzdream.com%{REQUEST_URI} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^oauthproxy/ oauthproxy/index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</IfModule>