We are porting a web site from a different CMS to Umbraco and on our old site we have custom redirect handling that works for both pages and media files, for example images. I am trying to use IContentLastChanceFinder but that only seems to work with pages. Is there a way to handle redirects for other files?
I don't think there is a media version of IContentLastChanceFinder, is there any reason you can't fall back on good, old fashioned redirect rules in the web.config?
If not, then in old money I would have looked to use something like the IHttpHandler to intercept the request and then do stuff with it depending on what it is, but if you're using .net core then you'll need to look at using some middleware to do the job.
IContentLastChanceFinder for media files
We are porting a web site from a different CMS to Umbraco and on our old site we have custom redirect handling that works for both pages and media files, for example images. I am trying to use IContentLastChanceFinder but that only seems to work with pages. Is there a way to handle redirects for other files?
I don't think there is a media version of IContentLastChanceFinder, is there any reason you can't fall back on good, old fashioned redirect rules in the web.config?
If not, then in old money I would have looked to use something like the IHttpHandler to intercept the request and then do stuff with it depending on what it is, but if you're using .net core then you'll need to look at using some middleware to do the job.
Thanks, Middleware was the way to go for this.
is working on a reply...