用户
 找回密码
 入住 CI 中国社区
搜索
查看: 4542|回复: 2
收起左侧

[服务器] http.ini 问题

[复制链接]
发表于 2010-2-5 15:10:21 | 显示全部楼层 |阅读模式
在iis下面  想去掉index.php   
[ISAPI_Rewrite]

# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

# Block external access to the httpd.ini and httpd.parse.errors files
RewriteRule /httpd(?:\.ini|\.parse\.errors).* / [F,I,O]
# Block external access to the Helper ISAPI Extension
RewriteRule .*\.isrwhlp / [F,I,O]
RewriteEngine on
RewriteCond $1 !^(index\.php|images|product_tags|sitemap|up_files|css|paypal|system/plugins/fckeditor|js|robots\.txt)
RewriteRule ^(.*)$ /index\.php/$1


这样index.php能去掉 但是图片路径那些就找不到
需要怎么写呢
发表于 2010-2-5 16:45:08 | 显示全部楼层
ISAPI_Rewrite 也支持 apache 的 rewrite 语法???
那么,楼主应该注意
RewriteCond $1 !^(index\.php|images|product_tags|sitemap|up_files|css|paypal|system/plugins/fckeditor|js|robots\.txt)
这句,看看你的图片文件夹是否在这里。

PS: 不了解 IIS,所以只是猜测。
 楼主| 发表于 2010-2-9 11:22:50 | 显示全部楼层
到处找了资料 ISAPI_Rewrite 没看到有写RewriteCond 着句的,好像听他们说只有一个一个重写,实在没办法就只有一个一个重写了,谢谢hex老大

本版积分规则