Leadmetrics
2 free tools, no sign-up

Free technical SEO tools

Generate the files and rules that decide how crawlers reach your pages.

Small files, large consequences

There are few places on a site where one line does as much damage as it does here. A stray Disallow: / removes a site from search. A redirect loop takes a section offline. Neither throws an error, neither appears in a test suite, and both can run for weeks before anyone connects the traffic graph to the deploy that caused it.

Blocking is not removing

This is the distinction that catches people. Robots.txt controls crawling — whether a bot may fetch the page. The noindex tag controls indexing — whether it may appear in results. To keep a page out of search you need it crawlable and marked noindex, which is the opposite of what intuition suggests.

Redirects are a permanence decision

Every redirect you write is a promise to keep an old address working. That is worth making deliberately: before changing a URL, be clear about what the new one buys you, because the redirect and its small ongoing loss are the price. Tidying slugs across a site is rarely worth it; moving a page that is genuinely about something new usually is.

Generate the rules, then test them

These tools produce the file in the syntax your server expects, which removes the typo class of error. They cannot tell you whether the rule is the right one for your site. Check a generated robots.txt in Search Console, and test redirects with a request that follows every hop, before either goes anywhere near production.

Technical SEO FAQ

Should I block a page in robots.txt or use noindex?

Noindex, almost always. Blocking in robots.txt stops the crawl, not the indexing — Google can still list a URL it was never allowed to read, with no description. And a page blocked in robots.txt can never be seen to carry a noindex tag, so the two directives cancel each other out.

Where does robots.txt have to live?

At the root of each host and protocol. The file at example.com governs nothing on shop.example.com, which needs its own. A robots.txt in a subdirectory is ignored completely.

What is the difference between a 301 and a 302?

A 301 says the move is permanent and passes the ranking signals to the new URL; a 302 says the original will return and keeps the signals where they were. Using a 302 for a permanent move is the most common redirect mistake, and it holds a site back for months.

Do redirect chains matter?

Yes. Each hop costs crawl budget and a little signal, and browsers and crawlers stop following after a handful. When you add a redirect, point it at the final destination rather than at another redirect, and flatten the chains you already have.

How long should a redirect stay in place?

Permanently, in practice. A year is the usual advice for search engines to fully transfer signals, but links and bookmarks live far longer than that. Redirects are cheap to keep and expensive to remove.

What happens if robots.txt returns an error?

A 404 is read as no restrictions, which is safe. A 500 or a timeout is read as a reason to pause crawling the whole site, and if it persists pages can drop. Serving robots.txt from an application that can fail is a risk worth designing out.