我想从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]
请为我提供一个解决方案