正确的链接是 /walks-events/huguenot-footsteps/french-protestant-church-library.html
基本上我需要从网址末尾删除。?acm = 3466_63 我尝试过重定向
Redirect /walks-events/huguenot-footsteps/french-protestant-church-
library.html.?acm=3466_63 http://www.huguenotsofspitalfields.org/walks-
events/huguenot-footsteps/french-protestant-church-library.html
但它似乎不起作用。任何帮助将不胜感激。
答案 0 :(得分:1)
您可以将此规则用作最高规则
RewriteEngine On
RewriteCond %{THE_REQUEST} (/walks-events/huguenot-footsteps/french-protestant-church-library\.html)\.\?acm=3466_63 [NC]
RewriteRule ^ %1? [R=301,NE,L]