Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm trying to setup webforms routing in umbraco.
I have a content page off the route called "ride". I'd like to change it from www.mysite.com/ride?id=12345 to www.mysite.com/ride/12345
I've added the following to a class in the app code folder.
public class Global : umbraco.Global { /// <summary> /// Code that runs on application startup /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected override void Application_Start(object sender, EventArgs e) { base.Application_Start(sender, e); RouteTable.Routes.Add("RideRoute", new Route("ride/{RideGuid}", new PageRouteHandler("~/ride"))); }
But that gives me a 404.
I've also tried adding ~/ride/ to umbracoReservedUrls umbracoReservedPaths in the web.config
Does anyone know how to get this to work?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
URL Routing in Umbraco
I'm trying to setup webforms routing in umbraco.
I have a content page off the route called "ride". I'd like to change it from www.mysite.com/ride?id=12345 to www.mysite.com/ride/12345
I've added the following to a class in the app code folder.
But that gives me a 404.
I've also tried adding ~/ride/ to umbracoReservedUrls umbracoReservedPaths in the web.config
Does anyone know how to get this to work?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.