Pap*_*urf 4 php .htaccess redirect file-type
我有一些.swf网站的旧文件/链接,他们目前通往一个404 Not Found页面.我想知道是否有一种简单的方法,使用.htaccess(或您建议的任何其他方法)将这些文件/链接重定向到我的网站主页http:www.mysite.com/home.
.swf
404 Not Found
.htaccess
http:www.mysite.com/home
示例链接:
http://www.mysite.com/folder/file.swf
http://www.mysite.com/file.swf
Joh*_*nce 6
这应该工作:
RewriteEngine On RewriteRule ^.*\.swf$ /home [R=301,L]
归档时间:
13 年,11 月 前
查看次数:
6029 次
最近记录: