Hi there,
I'm quite new to programming in ASP.Net.
I've created a website containing a webshop where the information of products is contained in a database.
When the detailpage of one product is shown, the url shows ...aspx?ProductCode=#ProductCode#
When a user enters a productNAME (that is contained in my database) in the Google Search, I want the Google Result page to show a link to the corresponding detailpage of that product.
If I understand this correctly, and need url rewriting so the page-url shows ..aspx/#ProductName#
How do I do this ?
Do I have to extract the ProductName from the URL, then search for the corresponding ProductCode in the database, and change the url to ..aspx?ProductCode=#ProductCode# on the server-side ?
How does Google know what products are contained in my database, so the are shown in the Google Search results ?
Any help appreciated !
Loading
Luk VandevyverePosted Aug 7, 2014, 2:58 AM
Thank you all !
Guest UserPosted Aug 1, 2014, 9:51 PM
i encourage you to refer this blog by Scott, it's best for these problems of URLs
http://weblogs.asp.net/scottgu/tip-trick-url-rewriting-with-asp-net