How to check redirects?

As time goes by, redirects may accumulate on a website. When creating permanent (301) redirects, links that pointed to the old page should be corrected so that they point to the new one (the target of the 301), in order to keep a clean internal linking; this is even more essential if you work on a big website.

In an ideal world wide web, you shouldn’t find 301 redirects when you crawl a clean website. You may also want to review 302 (or 307) temporary redirects to check if they still are relevant.

Let’s see how to get a custom report of redirected (3xx status code) URLs of a website.

Currently Hextrakt does not provide a redirects report, but you can quickly and easily create your own custom report and reuse it in other projects. By the way you should get used to create useful custom reports to analyze the data you need.

When creating a custom report, the default columns are those from the current report’s table. So to save time, you can start with an existing report that is similar to the custom report you want. In our case, the “Non 200 status code” pages is a good starting point:

1. Go to Directives > Indexability > Unindexable pages > Non 200 status code.

Non 200 status code pages
Non 200 status code pages

2. Create a new custom report (with a custom filter): click on “Advanced URL explorer” > “New”.

Open URL explorer
Open URL explorer

3. Name your custom filter “Redirects” and click “OK”.

4. [Optional] If you want other columns to be displayed, click “Columns”.

5. Click “Query” > “Add”.

Status code query
Filter status redirect

For all redirects you can use 2 queries: status code >= 300 AND status code < 400). If you want only 301: status code = 301 (in this case name your custom filter “301 redirects”).

Status 3xx
Status 3xx

You have now a custom redirects report that you can use in all your projects. To access your custom reports, click on “Advanced URL explorer”.

Redirects report
Redirects report