0

I want to use hierarchical url for my application.How can i create?

For example my database hierarchy as follow,

  My product table
     |
     |--> Electronics
             |
             |--> Television
                       |
                       |--> Led Tv
                               |
                               |--> Samsung Led Tv
                               |--> Philips Led Tv
                               |--> LG Led Tv

i want to create hierarchical url such as http://mydomain.com/product/electronics/television/led_tv/samsung_led_tv

mantissa
  • 147
  • 3
  • 14

3 Answers3

2

You are looking for URL-rewriting.

In ASP.NET you can leverage IIS URL Rewriting module in order to get it:

http://www.iis.net/downloads/microsoft/url-rewrite

Matías Fidemraizer
  • 63,804
  • 18
  • 124
  • 206
1

Use URL Rewrite

http://weblogs.asp.net/owscott/archive/2012/11/07/url-rewrite-protocol-http-https-in-the-action.aspx

or

ASP.NET MVC for SEO (Search Engine Optimization) friendly URL.

Murali Murugesan
  • 22,423
  • 17
  • 73
  • 120
0

i have found a sample about my issue. http://erraticdev.blogspot.com/2011/01/custom-aspnet-mvc-route-class-with.html

mantissa
  • 147
  • 3
  • 14