http.ini配置如下
[ISAPI_Rewrite]
# 3600 = 1 hour
#CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files from accessing through HTTP
RewriteRule ^/httpd(?:\.ini|\.parse\.errors).* [F,I,O]
# Protect *.inc,*.mdb files
RewriteRule .*(?:\.inc|\.mdb) [F,I,O]
RewriteCond User-Agent: .*google.*|.*baidu.*|.*yahoo.*|.*sougou.*|.*iask.*|.*soso.*|.*yodao.*|.*youdao.*
RewriteCond Host: (?:www)\.lxbao\.org
RewriteRule (.*) $1 [L]
RewriteCond Host: (caff)\.lxbao\.org
RewriteRule ^/(.*) /university/$1 [I,L]
但是现在我用http://caff.lxbao.org 没法访问,请高手指点一下,帮我配置一下
我现在想的是用http://caff.lxbao.org/页面名
访问到的东西是
二级域名:
RewriteCond Host: (?!/.|www|ww)(.*).rewriter.com
RewriteRule (.*) http/://www.rewriter.com/$1$2 [I,R]
RewriteCond Host:(\b(?!www)\caff)\.lxbao\.org