Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/date/2.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 重定向产品';s页至类别';普雷斯塔肖的第二页_.htaccess_Redirect_Prestashop - Fatal编程技术网

.htaccess 重定向产品';s页至类别';普雷斯塔肖的第二页

.htaccess 重定向产品';s页至类别';普雷斯塔肖的第二页,.htaccess,redirect,prestashop,.htaccess,Redirect,Prestashop,必须将一个特定产品的页面重定向到一个特定类别的页面,我使用的是ps 1.4.7 我尝试使用.htaccess,但它不起作用 我使用的代码是: RewriteRule ^(300-cat-offline-4)$ http://www.italia-mobili.it/7-sedie [R=301,L] 然后 有人能帮我吗?我自己回答: 正确的代码是 RewriteRule ^(.*)1012-sedie-pelle-round\.html$ http://www.italia-mobili.i

必须将一个特定产品的页面重定向到一个特定类别的页面,我使用的是ps 1.4.7

我尝试使用.htaccess,但它不起作用

我使用的代码是:

RewriteRule ^(300-cat-offline-4)$ http://www.italia-mobili.it/7-sedie [R=301,L] 
然后

有人能帮我吗?

我自己回答:

正确的代码是

RewriteRule ^(.*)1012-sedie-pelle-round\.html$ http://www.italia-mobili.it/7-sedie/$1 [R=301,L,NC]
我把这个代码放在后面的行中

RewriteEngine on
RewriteEngine on