views:

199

answers:

1

I'm building a simple cms system and would like to have true seo urls with hierarchical levels of pages like http://www.mydomain.com/lorem-ipsum/dolar/sit-amet/. Whats the best approach to successfully implement urls like this?

+1  A: 

This is a good one on routing, though for MVC 1.0, it still holds for MVC 2.0.

By default MVC provides support for hierarchical levels of pages in a SEO manner. If structured properly, your URLs will be SEO friendly.

Thanks

Mahesh Velaga
I don't want any "hardcoded" url paths in my cms, lets say i want to rename my search page from search to mysearchpage this approach does not seem to hold up? It would be interesting to see if someone successfully has build a cms where the editor can rename and create pages exactly as they want the structure to be. In my test application I have a catchall route like this {*pagePath} but that may not be the best solution?
Marcus
just change the action name when you want to change the the page name, Or you can use rewrite module of iis to redirect or rewrite the URLs to the old ones with out changing any of your code. Thanks
Mahesh Velaga