I've found quite a few topics on this but no answer. If a page is unpublished in Umbraco it returns a 410 error when I want it to return the nicely formatted 404 page.
I've tried:
Which doesn't work it still returns the ugly 410 page.
Does V3 of URL tracker handle 410s? Or is there another alternative.
Sorry, I will rephrase the question. I am happy to obey the rules and return a 410 response. I just want the page to be a custom design to tit in with the site in the same way a 404 page can be defined, e.g. as below (the code didn't come out on my original post which may have confused things)
I haven't used umbraco's error pages feature because of stuff like this. It's not flexible enough.
I built my own solution to show custom errors, just use or create an ASP.NET/IIS based solution to do this instead of umbraco.
I might add a setting to swap 410 with 404 in the future though.
410 Response code
I've found quite a few topics on this but no answer. If a page is unpublished in Umbraco it returns a 410 error when I want it to return the nicely formatted 404 page.
I've tried:
Which doesn't work it still returns the ugly 410 page.
Does V3 of URL tracker handle 410s? Or is there another alternative.
Thanks
Dan
Just explain to me why you don't want to obey the rules of the web/http? 410 is the correct response for removed content.
Sorry, I will rephrase the question. I am happy to obey the rules and return a 410 response. I just want the page to be a custom design to tit in with the site in the same way a 404 page can be defined, e.g. as below (the code didn't come out on my original post which may have confused things)
I haven't used umbraco's error pages feature because of stuff like this. It's not flexible enough.
I built my own solution to show custom errors, just use or create an ASP.NET/IIS based solution to do this instead of umbraco.
I might add a setting to swap 410 with 404 in the future though.
Thanks for this, makes sense. I will ask the core.
Dan
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.