What would be the most appropriate route for this URL?
www.mysite.com/searchkey0
www.mysite.com/searchkey1
Where searchkey
is the keyword for a search method? I tried the following route:
routes.MapRoute( _
"SearchRoute", _
"search", _
New With {.controller = "Search", .action = "Search", .id = ""} _
)
In this route, the URL must have /search/searchkey
. I only want to have the searchkey
in the URL, and not the word Search
.
What am I missing?