2016-03-05 75 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

非常感谢。我已经达到了我想要的。 –

相关问题