Developer forum

Forum » Ecommerce - Standard features » Generating Ecom product urls for redirects when moving to DW

Generating Ecom product urls for redirects when moving to DW

Davy Capiau
Reply

Hi,

Our customer is moving from another system to DW. The product url structure changes, so for SEO we need to set the correct redirects.

I want a file with 'column 1 ProductID' and 'column 2 ProductUrl' (so I can cross reference it with the original urls). This is something which is not stored in the DB, so it's not easy to export.

Does anyone has an ideal method?


Replies

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Dany,

 

We've used several techniques in the past:

  1. URL Rewrites
    1. If you have a pattern from the old URL to the new URL that you can trust you can use that
  2. URL Rewrite + Redirect page
    1. You take a pattern from the old URL and point to a dummy DW page
    2. That DW dummy page takes some parameter from the URL (or parses the url path) and takes the product id, number or name from it
    3. Then you instantiate the product using the API and use the FriendlyURL method to redirect the user to the final page
  3. Nothing
    1. SEO will eventually pick it up

 

None of them are perfect but they woked for us at times, trying to "minimize the SEO impact".

 

Best Regards,

Nuno Aguiar

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

You can access all product URLs on /sitemap.xml if it is enabled for products.

 
Davy Capiau
Reply

Hi guys,

The sitemap doesn't have the ID's of the products, so I can't cross reference it with the originals. Or do you have a code snippet to generate it temporarely?

Fyi we're using the SWIFT googlesitemap.xml

 

 

You must be logged in to post in the forum