Developer forum

Forum » Ecommerce - Standard features » Proper redirects for missing products

Proper redirects for missing products

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

What's the recommended way to redirect to a new product that has replaced an existing product? I have a shop with a few products that are obsolete. Deactivating them returns a 404 which is good. But I would prefer to redirect the user to a replacement product instead. So what I do I need to do to redirect from, say

/Products/GroupName/Product-1

to something like:

/Products/GroupName/Product-2

when Product 1 has been deactivated?

I tried using the Direct Paths module but it doesn't seem to trigger for the source URL. I know I can use URL Rewrite in IIS but would prefer something manageable in DW so content managers can do it.

Thanks,

Imar


Replies

 
Kristian Kirkholt
Reply

Hi

I donĀ“t think that there are any bestway practice to do this.

What about using the same name as the original Product.

Also notice these settings in the Customized URLs

  • Use strict URL recognition Always return 404 if path is not correct
  • Canonical link in meta
  • 404 for products not in website shop
  • 404 for products not in website language
  • Include product ID in product URL

Kind Regards

Kristian Kirkholt

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Giving them the same name wouldn't work. If the name already exists (because the product hasn't been deleted) we'll get a -1 in the URL for the product. But more importantly, the name is likely differerent as it is a new product that is replacing the old one.

 

I'll file an enhancement request for this.

Thanks,

Imar

 

You must be logged in to post in the forum