And unfortunately it's not working properly when destination page is a child of the root page. the destination page http://www.oursite/directory/categories is NOT editable anymore in sitefinity administration.
It only works/editable when the destination page is a root page.
It is important for as to have the destination page as a child page since we would like to display it in navigation menu under the root in the following format:
root: Business Directory (url http://www.oursite/directory/)
child one: By Category (url http://www.oursite/directory/categories)
child two: By Location (http://www.oursite/directory/locations)
As I sad the following pages should be able to receive the following urls
http://www.oursite/directory/categories should receive http://www.oursite/directory/categories/fishing
http://www.oursite/directory/locations should receive http://www.oursite/directory/locations/stateNameHere
We will appreciate any help here from your team or sitefinity community.
And last but not least. If possible I would like to ask sitefinity team to add new feature request in issue tracker for us to vote for making URL Routing much simplier/flexible in sitefinity.
Thanks for the explanations.
Looks that in your example you are showing how to access the parameters in a Routed Page
Can you show me how you register routes in sitefinity?
For example in asp 4.0 I will do it in global.asax in the following way:
This route will forward the following url http://www.mysite.com/directory/categories/fishing to ~/directory/category.aspx page
And here how I can access URL parameters in a Routed Page
string categoryName = Page.RouteData.Values["category"].ToString();