【发布时间】:2013-12-21 07:17:57
【问题描述】:
我正在使用 Zend Framework 1.12 开发这个应用程序。我想使用.htaccess 摆脱index.php。现在我的网址是这样的:
http://foo.com:10080/Reports_Century/public/index.php/reports/neworders
我希望能够看起来像这样
http://foo.com:10080/Reports_Century/public/reports/neworders
有可能吗? 我的 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]
谢谢。
【问题讨论】:
-
上述.htaccess文件的位置是什么?
-
它在公共文件夹中的 id
-
感谢您的回复,在下方发布了答案。