cakePhp 1.3.3 在 IIS web.config 上工作但没有样式
我正在尝试将 cakephp 应用程序部署到 iis,但在重写时遇到问题。我已将蛋糕推荐的 web.config 文件添加到根目录,它似乎可以使用干净的 url,但是即使对于蛋糕配置 index.php,它也找不到任何样式。任何想法将不胜感激。
I am trying to deploy a cakephp app to iis but am having trouble with the re-writes. I have added the cake recommended web.config file to the root and it seems to work with the clean urls, however it is not finding any styles even for the cake config index.php. Any ideas would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
似乎您没有启用重写,请尝试 http: //bakery.cakephp.org/articles/filippo.toso/2008/01/29/cakephp-on-iis
或者不要使用“pretty”网址的
seems like you dont have rewrite enabled, try http://bakery.cakephp.org/articles/filippo.toso/2008/01/29/cakephp-on-iis
or don't use "pretty" url's
Microsoft IIS 不允许 mod_write 功能,而当您使用 Cake PHP 时,这是必须的。你甚至可以使用一些与微软服务器上相同的东西,即IIS。查看下面的链接,可能会有所帮助:
http://www.iis.net/download/URLRewrite
Microsoft IIS doesn't allow the functionality of mod_write which is a must when you are using Cake PHP. You can even use something , which is equivalent to the same on microsoft server,i.e IIS. Check out the link below, it might be of help :
http://www.iis.net/download/URLRewrite
使用此 Web.config,我的应用程序运行良好。同样重要的是,给cake文件夹添加777权限。
https://github.com/fabiotnt/Utils/blob/master /PHP/Cake-Web.config
Using this Web.config, my app works fine. Is important too, add 777 permissions on cake folder.
https://github.com/fabiotnt/Utils/blob/master/PHP/Cake-Web.config