有必要从收件人 1) https://mysite/?Itemid=389
重定向到主页
2)
https://mysite/2-uncategorised.html?Start=6
。
以下是我的.htaccess的示例:
根据第一条规则,触发404。 根据第二条规则,什么也没有发生。 告诉我可能是什么问题。
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{QUERY} ^Itemid=(. *)$ [NC]
RewriteRule ^$ /? [R=301,L]
RewriteCond %{QUERY} ^start=(. *)$ [NC]
RewriteRule ^ /2-uncategorised.html$ /? [R=301,L]