我无法从包含字母数字字符链接的旧网站重定向。
这就是我所拥有的:
Redirect 301 /itemlist.asp?depart=Entry+Doors&subcat=Wood+%26+Wrought+Iron&disnum=all /index.html
.htaccess
文件无法将旧链接识别为网址。我已经搜索了所有,但答案是针对问题的。它对我的情况没有明显的帮助。任何帮助将不胜感激。
答案 0 :(得分:0)
使用类似:
RewriteEngine on
RewriteCond %{QUERY_STRING} =depart=Entry+Doors&subcat=Wood+%26+Wrought+Iron&disnum=all
RewriteRule ^ /index.html [R=301,L]