【问题标题】:Problem htaccess and Zend问题 htaccess 和 Zend
【发布时间】:2010-04-02 15:04:21
【问题描述】:

我有一台支持 php4 和 pho5 的服务器。

但我需要用户说服务器它必须像 php5 文件一样解析

AddType x-mapp-php5 .php .php5 .htm .html

但是现在,我的 Zend 项目无法访问控制器...

public/index/search -> 404 未找到

在我的本地服务器上它运行良好..有人知道该怎么做吗?

我的 htaccess 文件

SetEnv APPLICATION_ENV development
AddType x-mapp-php5 .php .php5 .htm .html

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

【问题讨论】:

    标签: php zend-framework .htaccess


    【解决方案1】:

    你不需要这样的东西吗?

    AddHandler php5-script .php
    AddType text/html .php
    

    【讨论】:

      猜你喜欢
      • 2012-08-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-11-26
      • 2012-07-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多