richardw 发表于 2012-9-19 14:30:08

很奇怪的Rewrite问题



# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32

# 排除
#RewriteCond Host: www\.abc\.com\kjmnks\
RewriteCond Host: (?:web|www)\.def\.com

# www.kjmnks.com Rewrite规则
RewriteBase /kjmnks/
RewriteCond $1 !^(index\\.php|images|system|robots\\.txt)
RewriteRule (.*) /kjmnks/index.php/$1

<Directory "d:/wwwroot/richardw/wwwroot/">
    AllowOverride all
</Directory>

上面是ISAPI_Rewrite的配置,我如果把#排除下面的那行注释行:#RewriteCond Host: www\.abc\.com\kjmnks\删除,整个Rewrite就不起作用...

能给分析下为什么不?

这个配置就是/kjmnks/下面放了CI,我想去掉index.php,主机是IIS的,就用了 ISAPI_Rewrite
页: [1]
查看完整版本: 很奇怪的Rewrite问题