0
我最近把我的店搬到了Magento 2.商店已經正常運行,一切都很好。我剛剛注意到,對於大多數產品,Magento 2爲同一產品創建了3個不同的URL。Magento 2網址重寫
例如,如果產品位於類別A>子類別B中,則會創建以下URL;
mystore.com/product.html,
mystore.com/categorya/product.html,
mystore.com/categorya/subcategoryb/product.html
我認爲這將最終成爲搜索引擎的問題,因爲它會導致一些公平的重複內容。
理想情況下,我想保留;
mystore.com/categorya/subcategoryb/product.html
url,我該如何阻止Magento重寫其他2個URL,同時確保所有頁面的鏈接仍然有效。
值得一提的是,如果我從主頁鏈接訪問產品,它會使用mystore.com/product.html網址。同時,如果我從類別A頁面訪問產品,則會使用mystore.com/categorya/product.html網址。類似的,如果我點擊子類別中的鏈接。