
Your blog is moving from /blog/ to /articles/. It has 340 posts. You could write 340 redirect rules, or you could write one.
That one rule is a wildcard redirect. It matches every URL that starts with a pattern and sends it to a new place, usually keeping the rest of the URL intact.
It’s the most useful rule you can write, and also the easiest one to get slightly wrong. Here’s how it works and what to check before you trust it.
What a wildcard redirect is
A normal redirect matches one exact URL. /about goes to /company, and nothing else is affected.
A wildcard redirect uses a * to match a whole group of URLs at once. A rule for /blog/* matches /blog/hello, /blog/2024/recap and anything else under /blog/. One line in your redirect list covers a section of any size.
That makes wildcards the natural tool for moving a section, renaming a folder, retiring an old campaign path, or pointing a whole old domain at a new one.
Keeping the rest of the URL
Matching is only half the job. The other half is where each URL lands.
A wildcard rule can send everything to one page, or it can carry the matched part over to the destination. The second option is usually what you want:
Rule:
/blog/*tohttps://example.com/articles/*Result:
/blog/hellolands on/articles/helloResult:
/blog/2024/recaplands on/articles/2024/recap
This is often called path forwarding. Every old link reaches its matching new page, so readers, bookmarks and search engines all end up in the right place.
It only works if the new section really uses the same slugs. Before you rely on it, take a few old URLs and check that /articles/<same-slug> exists. If the slugs changed, a wildcard alone will send people to 404s, and you need a redirect map for those pages instead.
Wildcard vs catch-all
A catch-all redirect is the widest wildcard there is: * on its own, matching every path on the domain. It’s what you use when an entire old domain should point somewhere else.
A section wildcard like /shop/* is narrower. It only touches URLs under that prefix and leaves the rest of the site alone.
Most setups use both, with a clear order:
Exact rules for the pages that moved somewhere specific.
Section wildcards for folders that moved as a whole.
One catch-all for anything left over.
The more specific rule should always win. If your tool checks rules in a different order, a broad wildcard can swallow URLs you meant to handle by hand.
Common mistakes
Wildcards fail quietly. The rule looks right, most URLs work, and the broken ones only show up weeks later in Search Console.
Redirect loops. If the destination still matches the rule, the redirect fires again. A rule for
/*onexample.compointing tohttps://example.com/new/*will keep adding/new/until the browser gives up with ERR_TOO_MANY_REDIRECTS. Keep the destination outside the pattern, or put it on another domain.Catching too much.
/blog*without the slash can also match/blogrollor/blog-archive. Include the slash in the prefix so the rule only covers the folder you mean.Forgetting the section page itself.
/blog/*covers what’s under the folder, but the bare/blogwithout a trailing slash can be a separate URL. Add an exact rule for it if people link to it.Dumping everything on the homepage. Sending a whole section to
/is easy, but Google advises against redirecting many old URLs to one irrelevant page and may treat it as a soft 404. Forward the path, or pick a relevant destination for each group.Case and query strings. Many redirect tools match paths exactly as typed, so
/Blog/and/blog/can be different. Check how yours handles capital letters and?utm=parameters before launch.
How to test a wildcard rule
Don’t test the one URL you had in mind when you wrote the rule. Test the edges.
A normal page in the section, like
/blog/hello.A deep URL, like
/blog/2024/03/recap.The section root, with and without the trailing slash.
A neighbour that should not match, like
/blogroll.A URL with a query string, like
/blog/hello?utm_source=newsletter.
Run each one through the redirect tester. You want a single hop, the status code you chose (usually 301 or 308 for a permanent move) and the final page returning 200.
How Redirect Supply handles wildcards
In Redirect Supply, a path rule can be an exact path like /about or a prefix with a trailing wildcard like /blog/*. Add * to the end of the destination too, and whatever came after /blog/ is carried over, so /blog/post-1 lands on https://newsite.com/post-1.
* on its own is a global catch-all for the whole domain. Exact matches are checked first, then wildcards, and the catch-all only fires when nothing more specific matched. Matching is case-sensitive, trailing slashes aren’t normalized, and the query string is part of the match, which the path redirect docs cover in detail.
The Free plan includes one domain with a catch-all rule. Path rules and wildcards come with the paid plans, starting with Basic.
Before you ship it
Write the wildcard, then try to break it with five odd URLs. If none of them surprise you, it’s ready.

