Finding broken linksRSS

3 replies

Last post Aug 27, 2019 06:32 AM by steveposter

  • Finding broken links

    Mar 19, 2012 10:06 AM|EricBr|LINK

    I have recently had to restore a site due to a server crash.  I know that there are missing PDF files that are hyper-linked from multiple pages.  How can I use the SEO Toolkit to find out what PDF files are missing?

     Thanks,

     Eric

  • Re: Finding broken links

    Mar 19, 2012 11:10 AM|EricBr|LINK

     I found the problem.  If you have custom error pages, the broken links do not show up.

     

    Eric

  • Re: Finding broken links

    Mar 19, 2012 12:56 PM|CarlosAg|LINK

    A couple of ways you might still be able to find them are:

    1) Do a query for all "*.pdf" that returned HTML content type, something like (save below as query.xml and use the Report->Open Query):

    <div style="background: rgb(255, 255, 255); line-height: 1; float: left; white-space: pre;"><?xml version="1.0" encoding="utf-8"?>
    <query dataSource="urls">
     
    <filter>
       
    <expression field="ContentTypeNormalized" operator="Equals" value="text/html" />
       
    <expression field="URL" operator="Ends" value=".pdf" />
     
    </filter>
     
    <displayFields>
       
    <field name="URL" />
       
    <field name="StatusCode" />
       
    <field name="Title" />
       
    <field name="Description" />
     
    </displayFields>
    </query>
    </div>

    2) Alternatively if your error pages are shown by a redirect, you can use a query for all .pdf that resulted in a redirect:

    <div style="background: rgb(255, 255, 255); line-height: 1; float: left; white-space: pre;"><?xml version="1.0" encoding="utf-8"?>
    <query dataSource="urls">
     
    <filter>
       
    <expression field="StatusCode" operator="Equals" value="Found" />
       
    <expression field="URL" operator="Equals" value=".pdf" />
     
    </filter>
     
    <displayFields>
       
    <field name="URL" />
       
    <field name="StatusCode" />
       
    <field name="Title" />
       
    <field name="Description" />
     
    </displayFields>
    </query>
    </div>
  • Re: Finding broken links

    Aug 27, 2019 06:32 AM|steveposter|LINK

    I would suggest brokenlinkcheck website, it is a free broken link checker. Also for small websites you can use site explorer.