During the update of the mega menu, we have updated the URL and name of several categories. The URL of the items included in this category also has to update with the new updated category name. Need to set up 301 redirects for all these items.
Jira code: SQUIP-403
Requirement
1) Need to update the URL of the items within those categories where we made URL and name change during the mega menu update.
2)Need to set up 301 redirects for all these items.
Solution
Solution-1
1)We will list down the items which need to be updated with their new URL.
2)We will add redirects for each item.
For this, a CSV will be created with a field Domain name, Redirect From URL, Redirect To URL. After that, we can import this.
3)A redirect in NetSuite > Commerce > Hosting > Redirects is interpreted as the 301 Redirects.
Solution-2
There is a setup in the website to select an action for an unrecognized URL.
If we select move permanently on this and navigate an item with an updated category and an item in the inactive category,the following are the results:
1. An item that contains the category of the old URL will go to the PDP page directly without containing the category component in the URL, only the item will be included in the URL.
eg: the URL we searched is https://www.squipthemesca.ml/Products/Civil-Construction-Site-Safety-Equipment-Site-Safety-Site-Signs-Road-Cones-Site-Barriers/Extendable-reflective-barrier-arm-1-2m-2-1m.html
The page displayed is :
With the URL https://www.squipthemesca.ml/Products/Extendable-reflective-barrier-arm-1-2m-2-1m.html.
So in the new URL there is no category because the category URL component was changed.
2.For an item with an inactive category it will display on the website if the item is visible. The navigation is directly from the home.
So if we navigate for an item from the updated category and inactive category it will display in the future without any update.
This is only applicable for item navigation not for category update.
Note:Approved the solution-1.So going forward with Solution-1.