Developer forum

Forum » Ecommerce - Standard features » 301 redirect eCom

301 redirect eCom

Morten Christensen
Reply

Hi

I have a solution which have approximately 600+ products and i have to make a 301 redirect to all those products, how can i do this in Dw?


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Morten

301 from where? Is it an upgrade? If so, you can setup 301's in the MC: http://manual.dynamicweb-cms.com/Dynamicweb-On-line-Manual/Management-Center/Web-and-HTTP/Direct-paths.aspx

BR Nicolai

 
Morten Christensen
Reply

Hello again
I am aware that you can make 301 redirect through MC, but my problem is that the customer has changed the names of the product groups causing a lot of 404 pages.
What I would like is to point directly to a product, as I see it, it is only possible to point to a page.

I have a product that was previously here:
http://www.hemglass.se/Produkter/E-SHOP/Fryst-mat-och-Pizza/Pulled-Pork.aspx


Now the product is here but I can not get the old url to point into the page here:
http://www.hemglass.se/Produkter/E-SHOP/Fardig-mat/Pulled-Pork.aspx

 
Nicolai Høeg Pedersen
Reply

Hi Morten

You can add the destination with querystring parameters, see dump. Then DW will add another 301 to the right URL.

Or you can use web.config redirects then: http://www.iis.net/configreference/system.webserver/httpredirect

BR Nicolai

 
Jacob Storgaard Jensen
Reply

Hi Nicolai, I can't see the dump regarding querystring parameters - Can you re-post?

 
Nicolai Høeg Pedersen
Reply

Yes!

Capture.PNG
 
Jacob Storgaard Jensen
Reply

At least it's working one URL at a time - so on 600+ URL's it might not be the right solution.

Just remember to rename or delete the old page where you had or still have the Product Catalog attached - you can't have it Unpublished or hidden, that will block the redirect. And if you have manually attached a product group per page, then exclude the &GroupID=X from the bottom field, otherwise you would get both the group name and the page name in your URL – Don't think it'll work by only checking the "Do not include URL in subpage URLs" checkbox on the page properties. The products are not subpages to the page.

Just a writeup for future reference to others :-)

 

You must be logged in to post in the forum