在zend框架中删除我的url中的index.php

时间:2014-04-25 05:18:46

标签: php zend-framework

我想从zend框架中的url中删除index.php。

这是我的网址: -

http://localhost/demo/html/index.php/cp

但我想要这样http://localhost/demo/html/cp

这是我在.htaccess文件中使用的代码

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

请为我提供一个解决方案

0 个答案:

没有答案
相关问题