Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dan Evans 616 posts 988 karma points
    Apr 07, 2016 @ 09:55
    Dan Evans
    0

    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

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Apr 07, 2016 @ 09:56
    Stefan Kip
    0

    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.

  • Dan Evans 616 posts 988 karma points
    Apr 07, 2016 @ 11:06
    Dan Evans
    0

    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)

     <error404>5631</error404>
      <error410>5631</error410>
    
  • Stefan Kip 1606 posts 4098 karma points c-trib
    Apr 07, 2016 @ 11:25
    Stefan Kip
    0

    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.

  • Dan Evans 616 posts 988 karma points
    Apr 07, 2016 @ 11:30
    Dan Evans
    0

    Thanks for this, makes sense. I will ask the core.

    Dan

  • 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.

Please Sign in or register to post replies