所以我一直在论坛后阅读论坛,我的面包店仍然没有function。 这里是我的文件夹树:/ home / jja / public_html /那里我有:应用程序,蛋糕,index.php和一个.htaccess看起来像:
重写引擎
RewriteBase /
RewriteRule ^ $ app / webroot / [L]
RewriteRule(。*)app / webroot / $ 1 [L]
我没有得到日志错误和404错误。
本文可能会帮助您在共享主机上安装CakePHP
我也托pipe我的网站hostgator没有任何问题。 不要将您的应用程序和蛋糕文件夹保存在public_html文件夹中。
将应用程序和蛋糕文件夹移动到主根目录(即/ home / username)
将webroot中的所有文件夹移至public_html
你的文件夹结构应该如下所示:
/home/username /app /cake /public_html /css /img /js index.php
您还将不得不对webroot中的index.php文件进行更改。 这已经在上面提到的链接中解释过了。