Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.htaccess Magento类别重定向_.htaccess_Magento_Redirect_Categories - Fatal编程技术网

.htaccess Magento类别重定向

.htaccess Magento类别重定向,.htaccess,magento,redirect,categories,.htaccess,Magento,Redirect,Categories,我有一个小问题,但我已经为解决这个问题奋斗了两天 我最近重新创建了一个新的类别(www.site.co.za/mens-clothing-3),该类别已填充并运行。我想将(www.site.co.za/mens-counting)重定向到新类别(www.site.co.za/mens-counting-3) 我已经尝试在htacess文件中实现以下内容,但什么也没有发生。旧的分类链接(男装)现在明显变成了404,谷歌(主要关注点)仍在使用它。我的htaccess规则如下所示: 您可以改为使用m

我有一个小问题,但我已经为解决这个问题奋斗了两天

我最近重新创建了一个新的类别(www.site.co.za/mens-clothing-3),该类别已填充并运行。我想将(www.site.co.za/mens-counting)重定向到新类别(www.site.co.za/mens-counting-3)

我已经尝试在htacess文件中实现以下内容,但什么也没有发生。旧的分类链接(男装)现在明显变成了404,谷歌(主要关注点)仍在使用它。我的htaccess规则如下所示:



您可以改为使用magento url重定向


:)

链接起作用了,但它不断更新新的链接,如www.google.co.za/product-4(数字不断增加)。我目前不在product-8上,它根本不适合我的谷歌排名。请尽可能协助。我还尝试在URL重写类别中取消勾选“为旧URL创建永久重定向”。我可能做错了什么?
RewriteEngine On
RewriteCond %{HTTP_HOST} bigblue.co.za$ [NC]
RewriteCond %{HTTP_HOST} !mens-clothing-3
RewriteRule ^mens-clothing/(.*)$ http://www.bigblue.co.za/mens-clothing-3/$1 [R=301,L]