Custom URL Routing at Site Root
In my implementation of Sitefinity, I have a page with the URL "/user" configured to display the User Profile based on a provided user name. For example, http://mysite.com/user/user1 will display the user information the user with "user1".
What I'd like to do is offer a simplified version of this URL at the root of my site by removing the middle "/user/" directory:
This helper...
RouteHelper.SetUrlParametersResolve();
Thanks for the info, though I still need to figure out a way for IIS/Sitefinity to even recognize the URL. Right now it's currently using the StaticFileHandler and throwing a 404. I'm hoping has some code for an HttpHandler or HttpModule or custom Sitefinity Route that can be used to intercept the requests and determine if it's a valid username.
did you ever find a solution for this? I'm attempting to accomplish something similar, and cannot seem to prevent Sitefinity from throwing 404 instead of allowing me to intercept the route...
many thanks
Hello Josh,
This functionality is not available but I have logged it as Feature request in our Feedback portal, where you could vote for it and subscribe receiving notifications on status change.
Regards,
Svetoslav Manchev
Telerik
Hello,
We just purchased Sitefinity and was told this was possible. Are you saying that it is currently not possible? What is the ETA for this feature if any? Is there any other possible work-arounds?
We have an existing MVC based website that has user and branch pages. Our current routing set up allows any non-static pages to be intercepted and checked against a routing table to see if a user or branch page exists.
Therefore, this user URL:
http://academymortgage.com/kevinglad is found in the table and re-routed to academymortgage.com/.../kevinglad
and this branch URL:
http://academymortgage.com/chandler is found in the table and re-routed to
academymortgage.com/.../chandler
How can we accomplish this with the latest version of Sitifinity?
Thanks,
Robert
Keywords: custom url routing, register routes, user profile pages