|
- [ISAPI_Rewrite]
- # 3600 = 1 hour
- CacheClockRate 3600
- RepeatLimit 32
- # 排除
- #RewriteCond Host: www\.abc\.com\kjmnks\
- RewriteCond Host: (?:web|www)\.def\.com
- # [url]www.kjmnks.com[/url] Rewrite规则
- RewriteBase /kjmnks/
- RewriteCond $1 !^(index\\.php|images|system|robots\\.txt)
- RewriteRule (.*) /kjmnks/index.php/$1 [L]
- <Directory "d:/wwwroot/richardw/wwwroot/">
- AllowOverride all
- </Directory>
复制代码
上面是ISAPI_Rewrite的配置,我如果把#排除下面的那行注释行:#RewriteCond Host: www\.abc\.com\kjmnks\删除,整个Rewrite就不起作用...
能给分析下为什么不?
这个配置就是/kjmnks/下面放了CI,我想去掉index.php,主机是IIS的,就用了 ISAPI_Rewrite
|
|