Skip to main content

Fixing and Preventing Broken Links on your Website using Checkbot

Checkbot is an automatic link-checking tool used on the BCIT website. It goes through the BCIT public website and most BCIT Commons sites and checks each and every link it encounters. It runs weekly, usually on Monday night and then emails a link to the report to all WordPress Publishers and some Editors, as well as some Commons site owners. If you want to be a regular recipient, let us know by emailing techhelp@bcit.ca (please include a summary of the content you’re responsible for). The report is also always available to view (while on campus or when connected to a BCIT VPN) for any current BCIT employee, not just identified recipients, and includes a search tool that can be used to find existing incoming links if you’re considering deleting a page or modifying a page’s permalink.

In this article:

 

Where can I see my broken links report?

In addition to the email link, you can find your latest broken link report at anytime in the following way:

  1. Go to https://secure.bcit.ca/admin/checkbot/
  2. Login with your usual BCIT credentials.
  3. This will take you to the Checkbot main directory.screen shot of checkbot help page
  4. Click on the report for your area of the site, this will take you to your report.
  5. For areas with responsibilities for many separate folders, it is possible to show only some of the results at any one time by checking or unchecking the check boxes next to the sections with errors (under the “Responsible For:” heading).
  6. The report is displayed in sections based on the error codes produced by the web server when a visitor clicks a link.screen shot of checkbot help page

Each error code section displays a list of links to pages and an indented sub-list of broken links for that particular page.

Note: It can sometimes happen that there is a link with no text, for instance <a href=”http://www.brokenlink”></a> which is broken and won’t show up in the design view of the page. The methods below will always find these empty links, and you can delete the link entirely.

What do the error codes mean and how do I fix them?

Click on the codes below to expand that error’s explanation.

How can I prevent broken links?

In addition to reporting on broken links after they occur, Checkbot also includes a search tool that you can use to find all existing links to any web address. If you’re considering deleting a page or other piece of content, or altering its permalink (including by modifying the structure of your site), use this search tool to find out what other pages on the BCIT website have a link to it and remove/modify those links prior to making the change.

To use the Search tool:

  1. Go to the Checkbot summary page and click the Search link at the top, just below the current report’s date.
    Checkbot report summary page header with the Search link circled in red
  2. Paste the URL you want to search for into the search field and hit Enter on your keyboard.
    • Note: This URL should be the published public website address – starting with www.bcit.ca – not a preview link or any link starting with kb.bcit.ca.

The results returned include every page that has a link to the searched URL, including those that include the link in menus and megamenus. This makes this search tool much more useful for pages that are not in the main BCIT website megamenu, as those pages will be listed as being linked to from every single page in the site). You can change the number of results shown on each page or filter the results using the Search field below the “Show x entries” drop-down.

screen capture of using the search tool, searching for a URL, clicking next through several pages of results, changing the number of results in view, and further filtering the results using the subsearch field

Final notes

The first time through your broken link report may be daunting and time consuming–especially if you have never checked your site for broken links. Once you have completed the first pass through, future report checks will be much faster and easier.

If you have questions about your report, problems solving a broken link problem, or if you’d like to join the list of people receiving this report and fixing broken links, please contact ITS Helpdesk.

More information about managing content in public website WordPress