我需要重定向以下URL(并且批发后还有其他URL路径的NOTHING):
www.jedzebel.com/wholesale (或jedzebel.com/wholesale)
以下内容:
www.jedzebel.com/wholesale-info/wholesale-information.html
不幸的是,我有一个名为批发的文件夹,当标准301重定向到位时,mod_rewrite规则导致路径中所有URL的批量重写不正确 .
在Joomla重写规则之后,我在.htaccess中的RedirectMatch和Redirect中尝试了以下内容但是我必须有错误:
RedirectMatch (.*)/wholesale?$ http://www.jedzebel.com/wholesale-info/wholesale-information.html [R=301,L]
Redirect 301 ^wholesale?$ http://www.jedzebel.com/wholesale-info/wholesale-information.html
有任何想法吗 ?我只需要重写www.jedzebel.com/wholesale ...
1 回答
您可以在规则中选择尾随斜杠 .
您可以尝试以下规则:
Alternative: