zf关闭public目录下rewrite的httpd.ini写法
我用的是zendframework,现在讲程序从apache环境移到iis下,写httpd.ini时,发现个问题,求帮忙。谢谢
根目录下,把所有请求都指向index.php
代码:
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
RewriteRule /.* /index.php
但是当模板里引用css或图片的时候,把文件放在public目录里面,如果apache下.htaccess的话,一般是
RewriteEngine off就可以了,但是httpd.ini就不知道怎么写。
导致我引用/public/images/1.jpg都自动用index.php打开了。
分不多了,但是我绝对会结贴的。希望帮下忙