Possible Duplicate:
How does StackOverflow generate its SEO-friendly URLs?
I use Asp.net 4 and Routing
I use this Route to create SEO friendly URLs for my website.
Title
url paramenter is a string example "This is a Title" as result I get the URL in browser with this format /Content/This%20is%20a%20Title
.
I would rather have the white spaces %20 replaced with a more readable dash for example: /Content/This-is-a-Title
.
Any idea how to do it? Thanks for your help on this
routes.MapPageRoute(
"View Content", // Route name
"Content/{Title}", // Route URL
"~/Cms/FrontEndCms/Content.aspx" // Web page to handle route
);