Redirect to Product URL if Product ID is known. Please, help!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 2 años
Using NC 3.90

There is a product called "ADIDAS White Socks" with Product ID: 45214 and Product URL (SEO) is "mysite.com/adidas-white-socks"

What I need is this... If we put product URL in browser like "mysite.com/pro/45214" then redirect it immediatelly to "mysite.com/adidas-white-socks"

And if there is no such product with such ID, then just redirect to / home page of the site.

How to do it? Maybe using web.config file or any other solutions for this?

Is it possible to it with some piece of code maybe?

Please, help!
Hace 2 años
ِDear
I hope you're doing great. You can use the following plugin
https://www.nopcommerce.com/en/easy-url-redirection
Hace 2 años
@resanehlab
Please explain how your plugin would do that.  I don't see how it would know to redirect a product id to the proper URL.  I'm not aware of an URL endpoint that takes a product Id.  Your plugin would need to be configured with a redirection for every single product.
Hace 2 años
resanehlab wrote:
ِDear
I hope you're doing great. You can use the following plugin
https://www.nopcommerce.com/en/easy-url-redirection


That plugin is useless in my case!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.