用Nginx重写商店类别网址

时间:2018-10-03 14:23:49

标签: nginx url-rewriting

我们最近从Magento 1迁移到了2,在迁移过程中,我们清理了类别网址以使其更加一致。例如,我们更改了:

/mens/mens-accessories/mens-wallets

至:

/mens/accessories/wallets.

SEO明智的做法确实摧毁了我们,并想知道NGINX重写将是什么

a)将旧的类别网址重定向到新的网址,并且

b)使旧产品链接像以前一样工作,以便:

/mens/mens-accessories/mens-wallets/product-from-the-category

将重定向到:

/mens/accessories/wallets/product-from-the-category

0 个答案:

没有答案