0
我有這樣的代碼:modrewrite犯規重定向默默
RewriteEngine On
RewriteBase/
RewriteRule ^folder$ fd?id=190 [PT,L,QSA]
,但它不能正確重定向。
我收到一個file not found
錯誤。
如果我寫這樣的:
RewriteEngine On
RewriteBase/
#RewriteMap keys txt:http://5000franquicias.com/API/frId/getlist
#RewriteRule ^(.*)$ fd?id=${keys:$1|0}
RewriteRule ^montelana$ fd?id=190 [R=301,L,QSA]
改變標誌PT爲R = 301它的工作原理,但我想默默做重定向。
我用PT測試,唯一實際工作是當我使用R = 301標誌。它返回404沒有找到,每當我使用PT,r = 200,或NC,升,qsa – Larvex
是否有一些CMS/PHP框架運行?有沒有任何oather代碼或任何其他.htaccess那裏?當你加載'http://site.com/fd?id = 190'時會發生什麼? – anubhava
即時通訊使用codeigniter,這是唯一的htacces文件,如果我去http://site.com/fd?id=190它工作得很好,並且重定向工作正常只使用RewriteRule^montelana $ fd?id = 190 [ R = 301,L,QSA] – Larvex