我在zend框架1中有一個項目,其中,谷歌索引鏈接與http://www.example.com/index.php/url而不是http://www.example.com/url,從而創建重複和不需要的鏈接。在zend框架中從apache 2.4.6上的url中刪除index.php
我在htaccess的這條規則
RewriteRule ^index\.php(.*)$ /$1 [R=301,QSA,L]
的是,工作得很好,直到我們升級的Apache 2.4.6自那時以來它只是重定向像www.example.com/index.phpurl而不是www.example鏈接.com/index.php/url,index.php/url似乎不包含在這個表達式中。
有沒有人知道這個解決方案?
當我發現存在的Apache 2.4.6 https://bz.apache.org/bugzilla/show_bug.cgi?id=53929的錯誤。我現在不能改變apache版本,所以我需要一個解決方案來部署在.htaccess中來解決這個問題。 – Cosmin