代码之家  ›  专栏  ›  技术社区  ›  Alexander_F

访问和Zend问题

  •  0
  • Alexander_F  · 技术社区  · 16 年前

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

    但我需要用这个来说明服务器,它必须像php5文件一样被解析

    添加类型x-mapp-php5.php.php5.htm

    公共/索引/搜索->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]
    
    1 回复  |  直到 16 年前
        1
  •  0
  •   Kevin Schroeder    16 年前

    你不需要这样的东西吗?

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