错误地重定向在.htaccess中工作

时间:2018-11-26 13:24:57

标签: .htaccess joomla server-configuration

有必要从收件人 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]

0 个答案:

没有答案