Kagi Product Tips – Automatically Change Search Results to Your Desired URL with URL Redirects
Key point
Kagi's URL Redirects automatically substitute search result links.
Details
With Kagi Search's URL Redirects (or URL Rewrites), you can automatically change a URL before clicking a search result, taking you straight to the page you want.
The core is a find|replace style rule. You can replace an entire domain, substitute just part of a URL path, or handle multiple patterns at once with regular expressions.
- Domain substitution:
reddit.com→old.reddit.com - Path substitution:
/docs/v2/→/docs/v3/ - AMP removal:
https://www.google.com/amp/s/→https://
As an example, you can use a rule like ^https://bsky.app|https://witchsky.app to open Bluesky posts in Witchsky. Search results where a rule has been applied show a small icon, and hovering over it lets you check the original URL and the applied rule as well.
The community has shared various use cases too. On services like Reddit, Imgur, X, YouTube, npm, CurseForge, Goodreads, and Wikipedia, people use it for alternative frontends, avoiding ads/trackers, keeping an older UI, and forcing redirection to the latest docs.
In particular, using regular expressions makes it possible to set up redirects that always send versioned documentation URLs to the latest docs. The gist of the article is that this feature lets users directly control the quality of the links in their search results.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.