http.ini 问题
在iis下面想去掉index.php# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Block external access to the httpd.ini and httpd.parse.errors files
RewriteRule /httpd(?:\.ini|\.parse\.errors).* /
# Block external access to the Helper ISAPI Extension
RewriteRule .*\.isrwhlp /
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能去掉 但是图片路径那些就找不到
需要怎么写呢 ISAPI_Rewrite 也支持 apache 的 rewrite 语法???
那么,楼主应该注意
RewriteCond $1 !^(index\.php|images|product_tags|sitemap|up_files|css|paypal|system/plugins/fckeditor|js|robots\.txt)
这句,看看你的图片文件夹是否在这里。
PS: 不了解 IIS,所以只是猜测。 到处找了资料 ISAPI_Rewrite 没看到有写RewriteCond 着句的,好像听他们说只有一个一个重写,实在没办法就只有一个一个重写了,谢谢hex老大
页:
[1]