Test redirects after a site migration
Each old URL checked against its new target, with wrong targets, temporary redirects and chains marked.
- You start it: When you start it
What it does
The task
Read the redirect map in the Google Sheet sheet url: the old URL in column A and the expected new URL in column B. Open each old URL and follow the redirects. Record the status codes, the number of hops and the final URL. Mark the rows where the final URL is not the one in column B, where a 302 is used instead of a 301, where there are more than 2 hops, or where the final page returns an error. Write the results in columns C to F.
- It works in Google Sheets and any website, in the workspace you pick, and signs in with passwords from your Cuiar vault.
- It runs once, when you start it.
What you give it
| Blank | What to give | Example |
|---|---|---|
| sheet url | The Google Sheet with your redirect map | https://docs.google.com/spreadsheets/d/1RedirectMap |
What you get back
An example run with the example values above. Your run uses your own data.
412 redirects checked: 377 OK, 35 problems
| Old URL | Final URL | Codes | Problem |
|---|---|---|---|
| /blog/2019/pricing-update | /blog | 301 | Wrong target, expected /blog/pricing-update |
| /features/export | /product/export | 302 | Uses 302 |
| /docs/v1/auth | /docs/auth | 301, 301, 301 | 3 hops |
| /case-studies/halden | /customers/halden | 301, then 404 | The final page returns 404 |
... 31 more
Results written to columns C to F.
Run it in Cuiar
- 01
Open it
Click Use in Cuiar on this page. The side panel opens with the task in the composer.
- 02
Fill in the blank
Type sheet url. Tab moves to the next blank.
- 03
Run it
Run sends it to the agent. Follow each step in the panel, and stop it at any time.
From the terminal
cuiar exec "Read the redirect map in the Google Sheet https://docs.google.com/spreadsheets/d/1RedirectMap: the old URL in column A and the expected new URL in column B. Open each old URL and follow the redirects. Record the status codes, the number of hops and the final URL. Mark the rows where the final URL is not the one in column B, where a 302 is used instead of a 301, where there are more than 2 hops, or where the final page returns an error. Write the results in columns C to F."Run it from your AI agent
Claude Code, Codex, Cursor and other MCP clients reach Cuiar at https://mcp.cuiar.com/mcp. Add the server one time, then ask for the task in plain words, or call run_task yourself.
1. Add Cuiar to Claude Code
claude mcp add --transport http cuiar https://mcp.cuiar.com/mcp2. Ask your agent
Use the Cuiar tool run_task to run my "Test redirects after a site migration" template with sheet url = https://docs.google.com/spreadsheets/d/1RedirectMap.Setup for other agents: AI agents.
The tool call
{
"name": "run_task",
"arguments": {
"task": "Read the redirect map in the Google Sheet https://docs.google.com/spreadsheets/d/1RedirectMap: the old URL in column A and the expected new URL in column B. Open each old URL and follow the redirects. Record the status codes, the number of hops and the final URL. Mark the rows where the final URL is not the one in column B, where a 302 is used instead of a 301, where there are more than 2 hops, or where the final page returns an error. Write the results in columns C to F."
}
}Related templates
All engineering templatesEngineering
Find broken links on your website
Every link and image that returns an error, with the page it is on and the link text, in a sheet.
You start it: When you start it- Any website
- Google Sheets
Engineering
Find flaky tests in your CI runs
Tests that fail and then pass on the same commit, with the count and the error, from your recent runs.
You start it: When you start it- GitHub
- Google Sheets
Engineering
Find the cause of a jump in your cloud bill
This month's cost per service against last month, with the resources that grew the most.
You start it: When you start it- Any admin panel
- Google Sheets
Engineering
Compare page speed before and after a release
Lab metrics for your key pages after each production deploy, with each page that got slower.
On an event: When a new production deploy finishes- Netlify
- PageSpeed Insights
- Google Sheets
ResearchOdyssey
Estimate the size of a market
A top-down and a bottom-up estimate, with the source for each number and each step of the math.
You start it: When you start it- Any government site
- Google Scholar
- Google Sheets
ResearchOdyssey
Map the competitors in a market
Each competitor with its product, target customer, price, funding and size, and the gaps no one covers.
You start it: When you start it- Crunchbase
- G2
- Google Sheets