Copied to clipboard

Flag this post as spam?

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


  • Gary Bond 13 posts 36 karma points
    Feb 13, 2014 @ 15:08
    Gary Bond
    0

    Manual assignment of 410 Gone response to missing content

    I have a situation where a site has been migrated from an old V4 Umbraco implementation to a completely new V6.16 implementation. The URLTracker has been fantastically usefull in clearing up 404's from several years of content editors mindlessly renaming and moving pages to and fro, but I've now come across an issue I'm not sure how to resolve:

    The URL Tracker is capturing 404s for files (mainly images) that used to exist on the old site but are either no longer part of the site or were media items that now have different ids and or file names. Some of these I have been able to create redirects for, but much of it is now historic junk that needs to be issued with 410 Gone, as it keeps getting crawled and cluttering up the URLTracker 404 list, making it hard to monitor real 404s.

    As far as I can make out, URLTracker on has provision issuing 410 against content nodes that used to exist but have been deleted. Is there any way, either in the UI or by updating records in the [icUrlTracker] table to convert these trapped 404s into 410s? (URLTracker version 2.4.2)

    Thanks

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Feb 13, 2014 @ 15:12
    Stefan Kip
    0

    The only way I can think of is by editing those entries directly in the database, by setting the RedirectHttpCode field to '410' and the Is404 field to 'false' / '0'.
    But I'm not sure if it'll work.

  • Gary Bond 13 posts 36 karma points
    Feb 13, 2014 @ 17:52
    Gary Bond
    0

    Hi,

    I've just tried this and it sort of works...
    Requests for those resources do indeed get a response of 410 Gone, but the records also disappear from both the [404 Not Found View] and the [URL Tracker View] tabs. Do the 410's usually show up in the list when they are done automatically?

    Ideally I'd like to see them in the URL Tracker View.

    Actually, I'd like to see the HTTP code in a column on that page too, or at least an indicator (P,T,G perhaps?)

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Feb 14, 2014 @ 09:45
    Stefan Kip
    0

    Hi Gary,

    Nice to hear it works :-) It's true that those records do not appear in the UI, but I'll make sure they will in a future version. I'll also add support for custom HTTP Response codes in the UI.

    Thanks for this question and your thoughts!

  • Sebastian Dammark 547 posts 1287 karma points
    Feb 22, 2016 @ 10:05
    Sebastian Dammark
    0

    Is it still an issue that 410's doesn't appear in the UI ?

  • Gary Bond 13 posts 36 karma points
    Feb 14, 2014 @ 10:54
    Gary Bond
    0

    Thanks Stefan, that would be great!

  • Gary Bond 13 posts 36 karma points
    Feb 14, 2014 @ 12:53
    Gary Bond
    0

    One last question Stefan...

    Where we have captured multiple rows of 404s for a given resource, is it safe to just update them all to 410 or should I remove the duplicate records from the DB manually?

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Feb 14, 2014 @ 15:44
    Stefan Kip
    0

    I'd remove the duplicates.

  • 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