未从服务器找到 404 错误页面
404 error page not found from server
我有这种url
http://123.123.123.123/~developers/cakephp/
它总是给我
404 Not Found
The server can not find the requested page:
123.123.123.123/~developers/cakephp/ (port 80)
之前我的 url 是
www.domain_name.com/cakephp
我完成的项目是 运行。但现在我所有的 cakephp 或 Yii 项目都显示 404 页面未找到。我已经在 webroot index.php 文件、root index.php 文件中打印,但它没有显示我的消息。
我的 htaccess 文件在 root
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/ [L]
</IfModule>
这个问题是由我的服务器设置引起的。我已将我的代码移到新服务器上,然后它就可以完美运行了。
所以不要更改您的代码,请检查您的服务器 htaccess 设置。
我有这种url
http://123.123.123.123/~developers/cakephp/
它总是给我
404 Not Found The server can not find the requested page: 123.123.123.123/~developers/cakephp/ (port 80)
之前我的 url 是
www.domain_name.com/cakephp
我完成的项目是 运行。但现在我所有的 cakephp 或 Yii 项目都显示 404 页面未找到。我已经在 webroot index.php 文件、root index.php 文件中打印,但它没有显示我的消息。
我的 htaccess 文件在 root
<IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^$ app/webroot/ [L] RewriteRule (.*) app/webroot/ [L] </IfModule>
这个问题是由我的服务器设置引起的。我已将我的代码移到新服务器上,然后它就可以完美运行了。 所以不要更改您的代码,请检查您的服务器 htaccess 设置。