我正在尝试将每个请求重定向到我的目录,其子目录或要索引的文件.php但我无法这样做。
这是我的网址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
或/images/中的任何其他子目录/文件进行索引.php
任何帮助将不胜感激
谢谢
您可以使用
RedirectMatch 将/images* 重定向到/index.php
RedirectMatch ^/images/.+$ /index.php