CakePHP:网站无法打开Web服务器MIGRATION问题在本地主机上正常工作 [英] CakePHP : site not opening on webserver MIGRATION issue works fine on localhost

查看:190
本文介绍了CakePHP:网站无法打开Web服务器MIGRATION问题在本地主机上正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,这是什么事情发生。我正在学习蛋糕PHP和recenntly开发了一个使用它的博客。
博客文章和评论在本地服务器上正常工作。
但是当我迁移到我的web服务器(bluehost)。网站不打开。
it说它在views文件夹中找不到index.ctp。
我弄明白这个问题,发现我的文件夹名称在/ Views /
是小的例如。 / Views / posts,而不是/ Views / Posts。该网站完全在本地服务器上工作(文件夹名称仍然为/ Views / posts)。但它不打开在蓝色服务器上。它有一些与mod_rewrite的东西。 PLz帮助我。早期的答案将不胜感激。
明天是我的外部Viva和我的网站没有打开正确! HELP!

Ok so this is whats happening . I am learning cake PHP and recenntly developed a blog using it . The Blog post and comments are working just fine on the local server . But when i migrated it to my web server(bluehost). the site doesnt open. it Says that it could not find index.ctp in the views folder . I got around the problem and found out that my folder names in /Views/ are in smalls e.g. /Views/posts and not /Views/Posts . The site works prefectly on the local server (the folder names still being /Views/posts). But it doesnt open on the Bluehost server. does it have something with mod_rewrite . PLz help me . Early answer would be appreciated . Tomorrow is my external Viva and my site doesnt open properly !!!! HELP!

推荐答案

尝试绕过url重写并直接击中前端控制器(例如 http://www.example.com/index.php?url=/views/posts

Try bypassing the url rewriting and hitting the front controller directly (e.g. http://www.example.com/index.php?url=/views/posts)

如果解析正确,您的网址重写设置肯定有问题。

If that resolves correctly, then you've definitely got an issue with your url rewrite setup.

这篇关于CakePHP:网站无法打开Web服务器MIGRATION问题在本地主机上正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆