Firstly apologies if I'm not asking this question in the correct (wasn't sure when exactly to put it tbh!).
My problem is this I have a page that accepts a parameter off the querystring such as mysite.co.uk/course.aspx?id=123456 (The id of 123456 relates to a course called Family Law).
On the usercontrol in the page it takes the value off the querystring and displays data accordingly but what I'd like to be able to do is to be able to use a URL such as the following mysite.co.uk/course/family-law/ (with the '/' on the end so that google indexes this as a seperate page) but Umbraco is looking for a page called family.law under the course node (and there isn't one as this is a dynamic page).
I know that it's something to do with URL rewriting but I don't know where to start to be honest.
I was using the URL rewriting in UMBRACO 4.7.2 on my custom Global.asax file into the Application_BeginRequest method. Now I'm trying to upgrade to version 6.0.0 where I saw that I have to change my custom Global.asax to inherit from Umbraco.Web.UmbracoApplication.
No problems so far in general in the application, but when the global.asax triggers the HttpContext.Current.RewritePath(URL), after migrating to version 6, the method does not rewrite the URL at all. It does not give any error or exception, it simply doesn't rewrite the URL, and consequently the system returns 404 , file not found.
Any ideas about it? Did the version 6 of Umbraco stop to support the HttpContext.Current.RewritePath method in its new Global.asax?
URL Rewriting
Hi Folks,
Firstly apologies if I'm not asking this question in the correct (wasn't sure when exactly to put it tbh!).
My problem is this I have a page that accepts a parameter off the querystring such as mysite.co.uk/course.aspx?id=123456 (The id of 123456 relates to a course called Family Law).
On the usercontrol in the page it takes the value off the querystring and displays data accordingly but what I'd like to be able to do is to be able to use a URL such as the following mysite.co.uk/course/family-law/ (with the '/' on the end so that google indexes this as a seperate page) but Umbraco is looking for a page called family.law under the course node (and there isn't one as this is a dynamic page).
I know that it's something to do with URL rewriting but I don't know where to start to be honest.
Could anyone help please?
Thanks,
Craig
Have you checked out my Url Tracker?
Sounds like the right tool for the job.
Hi Kiposoep,
Do you know anything about the URL Tracker? It sorta works!
Hi all,
I was using the URL rewriting in UMBRACO 4.7.2 on my custom Global.asax file into the Application_BeginRequest method. Now I'm trying to upgrade to version 6.0.0 where I saw that I have to change my custom Global.asax to inherit from Umbraco.Web.UmbracoApplication.
No problems so far in general in the application, but when the global.asax triggers the HttpContext.Current.RewritePath(URL), after migrating to version 6, the method does not rewrite the URL at all. It does not give any error or exception, it simply doesn't rewrite the URL, and consequently the system returns 404 , file not found.
Any ideas about it? Did the version 6 of Umbraco stop to support the HttpContext.Current.RewritePath method in its new Global.asax?
Thanks in advance to all of you!
Hello,
You can also do this programmatically which gives you more possibilities. I wrote a blog about this: http://24days.in/umbraco/2014/urlprovider-and-contentfinder/
Jeroen
Looks like the website is down, but you can view the cached version here: http://webcache.googleusercontent.com/search?q=cache:DHDN6NgsOIMJ:24days.in/umbraco/2014/urlprovider-and-contentfinder/+&cd=6&hl=en&ct=clnk&gl=nl
Jeroen
is working on a reply...