简体   繁体   English

Zend Project提供404

[英]Zend Project gives 404

I am following this tutorial and i am running into some trouble. 我正在关注本教程 ,但遇到了一些麻烦。 The application is being hosted by networksolutions with shared hosting. 该应用程序由具有共享托管功能的网络解决方案托管。 When I try to access one of the newly created actions i get a 404 message. 当我尝试访问新创建的动作之一时,我收到404消息。

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

I used the suggested htaccess settings for my public directory but still no luck. 我为公共目录使用了建议的htaccess设置,但还是没有运气。 What could the problem be? 可能是什么问题?

You can check mod_rewrite enabled or disabled by: 您可以通过以下方式检查是否启用了mod_rewrite:

in_array('mod_rewrite', apache_get_modules());

Also, how are you accessing your files? 另外,您如何访问文件? ideally, it is : example.com// Made sure that you have "views/scripts//" ? 理想情况下,它是:example.com//确保您具有“ views / scripts //”?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM