开发者

Problem htaccess and Zend

开发者 https://www.devze.com 2022-12-25 17:28 出处:网络
I have a server with php4 and pho5 support. But i need to user this one to say server it must be parsed like a php5 file

I have a server with php4 and pho5 support.

But i need to user this one to say server it must be parsed like a php5 file

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

But now, my Zend Project have no access to the controllers...

public/index/search -> 404 Not found

On my local Server it works perfectly.. someone know what to do?

my htaccess file

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 %开发者_JAVA技巧{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]


Would you not need something like this?

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

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号