Developer forum

Forum » Development » Make SEO friendly url from url made by db productID

Make SEO friendly url from url made by db productID

Marie Louise Veigert
Reply

Hi,

I'm having an issue on a old solution (Version 8.0.2.0)

The customer would like to get SEO friendly URL's, but the productlist are made by getting productID from the database, why it doesn't show, when they have used the filter.

if (objTemplateRecipeItem.TagExists("Link"))
{
    if (this.Properties.get_Value("DetailPage"!= string.Empty)
    {
         objTemplateRecipeItem.SetTag("Link",this.Properties.get_Value("DetailPage"+ "&ProductID=" + prd.ID);
    }
}

My question is: Are there some kind of method to make a URL like this to a SEO friendly URL? 

 

 


Replies

 
Nicolai Pedersen
Reply

8.0 is almost 7 years old. Cannot remember that or find code to see what happened back then.

You REALLY should get the site upgraded for security reasons etc.

Apart from that, you should be able to simple use <a href="Default.aspx?ID=123&ProductID=Prod1"> and a setting in MC->URLs to automatically handle links. But not sure all of that was available in 8.0

 

You must be logged in to post in the forum