2016-03-05 69 views
1

我試圖將每個請求重定向到我的目錄,其子目錄或其文件index.php,但我無法這樣做。.htaccess將每個請求重定向到索引

這裏是我的網址 http://www.hypovps.in/images/internal-notes-files/26422supportsmallbiz.jpg

我在圖像放置的.htaccess。

我想重定向從

http://www.hypovps.in/images 
http://www.hypovps.in/images/internal-notes-files 
http://www.hypovps.in/images/internal-notes-files/26422supportsmallbiz.jpg 

或/圖像/內的任何其他子目錄/文件中的每個請求的index.php

任何幫助將非常感激

感謝

回答

0

您可以使用RedirectMatch重定向/ images *到/index.php

RedirectMatch ^/images/.+$ /index.php 
+0

非常感謝。我已經達到了我想要的。 –

相關問題