Im trying to make a very simple application that lets my client create their own pages. The hard part is to let them create thir own URL.
Client need to fill in:
- Page name (ex. About us).
- Page description (ex. We are a big company).
- Page URL relative (ex. /About)
When client enter this information and save, it should be saved in the database.
I can easily create a controller named "Page" which takes a value "ID" and when a user enters "www.someurl.com/Page/1" the newly created page pops up.
But what I really want is for the user to write "www.someurl.com/About" and then the page pops up.
How can this be done with some kind of dynamic rewrite/route code using ASP MVC.