dongqindu8110 2013-04-01 07:13
浏览 33
已采纳

zend框架工作索引动作给404

i got a strange problem today i tried to fixed it by google no luck so far.

problem is i have a IndexController.php file in zend framework app and it has simple action called about but when i tried to access it via

http://mysite/index/about it will give me 404

and if tried

http://mysite/Index/about it will load properly (with Capital I) this casesitive problem is giving only to index controller my other controllers are working fine im on ubuntu

here my htaccess file and i have enabled mod_rewirte and allowe_overried has set to all

# Rewrite Rules for Zend Framework
RewriteEngine On
# Add File Names or Extentions of files that you want to be able to access
#RewriteRule !alternate.php|.(js|css|ico|bmp|gif|jpg|png|xml|xsl|eot|svg|ttf|woff)$ index.php
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

# Security: Do not allow Browsing of Directories
Options -Indexes

# additional headers related to security
<IfModule mod_headers.c>
    # defends against 'ClickJacking' attacks by disallowing this site to be displayed in an IFRAME
    Header always append X-Frame-Options DENY
    # helps prevent attacks based on MIME-type confusion by rejecting css/js responses with incorrect MIME type
    Header always append X-Content-Type-Options nosniff
</IfModule>

if you guys have any idea please post

thanks

  • 写回答

1条回答 默认 最新

  • doubi7739 2013-04-01 09:00
    关注

    Try adding this line to make sure the options are correct:

    Options +FollowSymlinks -MultiViews
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 请问如何在openpcdet上对KITTI数据集的测试集进行结果评估?
  • ¥15 powerbuilder中的datawindow数据整合到新的DataWindow
  • ¥20 有人知道这种图怎么画吗?
  • ¥15 pyqt6如何引用qrc文件加载里面的的资源
  • ¥15 安卓JNI项目使用lua上的问题
  • ¥20 RL+GNN解决人员排班问题时梯度消失
  • ¥60 要数控稳压电源测试数据
  • ¥15 能帮我写下这个编程吗
  • ¥15 ikuai客户端l2tp协议链接报终止15信号和无法将p.p.p6转换为我的l2tp线路
  • ¥15 phython读取excel表格报错 ^7个 SyntaxError: invalid syntax 语句报错