Change route or 301 redirect? Help

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
I need to migrate a site from magento to nopcommerce,  the current site when a user selects a product the url is lIke this mysite.com/product/product-name in nop it would be mysite.com/product-name so now my question is; is it better to create a route that adds the /product/product-name or just do redirect to the new url and if I did redirects can I use a wildcard so I don't have to create a rule for all 700+ products.  

Thanks
7 years ago
I would recommend to use 301 redirect because it is easier to maintain and configure. If you add new router, you will have to build a plugin or customize nopCommerce core (which is not recommended). From another hand, you can setup redirects in your Web.config file.

HTTP 301 redirect is recommended from SEO point of view (https://moz.com/learn/seo/redirection).
7 years ago
Thanks for the reply would I need to create a rule for all the products or is there a way to use wildcard or patterns to achieve what I need can you share an example or point me in the right direction?
7 years ago
I hope https://www.iis.net/learn/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module will help.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.