Zendesk Guide redirects: how to redirect moved or deleted articles in 2026

Kurnia Kharisma
Written by

Kurnia Kharisma

Katelin Teen
Reviewed by

Katelin Teen

Last edited November 27, 2026

Expert Verified
Two people looking at an illustration of one help center page redirecting to another, with the Zendesk logo
TL;DR

The right way to do Zendesk Guide redirects is the Redirect Rules API: archive or delete the old article, then create a rule that sends its URL to the new one with a real 301, up to 50,000 rules per brand. The big change since this guide first ran is authentication. Zendesk is retiring API tokens, so every example below uses an OAuth access token instead. For a handful of low-traffic pages, a JavaScript redirect in your theme still works as a stopgap.

When you delete or move articles in Zendesk Guide (now called Zendesk Knowledge), the old URLs break. Readers hit a 404 and search engines drop pages that used to rank. I checked every step and code sample here against Zendesk's own developer docs on November 27, 2026.

Which Zendesk Guide redirect method should you use?

Use the API when the page has search traffic or the move is permanent, and JavaScript only for short-term fixes on pages nobody finds through Google. Zendesk's redirect help article draws the same line.

Hand-drawn comparison of the Redirect Rules API (real 301, keeps rankings, 50,000 rules per brand) and JavaScript in script.js (runs after load, can hurt rankings, fine for a few pages).
Both methods need the old article gone first; only one keeps your rankings.

What you'll need

  • Guide admin access. The Redirect Rules API is allowed for Guide admins only.
  • A Guide plan other than Guide Lite Legacy. The API is available on every other Guide plan. If you're unsure which plan you're on, our Guide Professional vs Enterprise breakdown and Zendesk pricing guide help.
  • For the API method: an OAuth client, set up in Admin Center under Apps and integrations > APIs > OAuth clients (steps below).
  • For the JavaScript method: theme code access (Knowledge admin > Customize design > Customize > Edit code).
  • Your URL pattern. Zendesk article URLs look like /hc/{locale}/articles/{id}-{slug}.

Why API tokens are out

Older guides, this one included, used API token auth (-u email/token:api_token). Zendesk is removing API tokens, per its removal announcement, for the Ticketing, Help Center and Voice APIs in three phases:

  • July 28, 2026: accounts created on or after this date can't create or use API tokens, and tokens unused for 30 days are deactivated.
  • October 27, 2026: no account can create new tokens. Existing active tokens keep working.
  • April 30, 2027: every remaining API token is permanently deactivated and the token pages under Apps and integrations > APIs > API tokens disappear.

So a script built on an old token stops in a few months. Our API token guide has the background.

Hand-drawn timeline of Zendesk API token removal: July 28, 2026, October 27, 2026 and April 30, 2027, pointing to an OAuth access token.
Old tokens still run today, but not past April 30, 2027.

Method 1: the Redirect Rules API

Zendesk opened the Redirect Rules API as an early access program in July 2023 (301 and 302 only) and made it generally available on October 21, 2024, according to the developer changelog. It returns server-side redirects with a real HTTP status (301, 302, 303, 307 or 308). A 301 tells Google the page moved for good, so rankings carry over.

Key rules from the API docs:

  • Redirects fire only on URLs that return a 404. For an article, that means it must be archived or deleted; sections, categories and community posts must be deleted.
  • Up to 50,000 redirect rules per brand.
  • Paths starting with /knowledge/ can't be redirect sources, because Zendesk reserves that path for Knowledge admin.

Step 1: create an OAuth client

  1. In Admin Center, click Apps and integrations, then APIs > OAuth clients.
  2. Click Add OAuth client.
  3. Give it a name, and set Client kind to Confidential (a script on your own machine or server counts).
  4. Under Redirect URLs, add an absolute https URL if the form asks for one. The flow below doesn't use it.
  5. Click Save, then copy the Secret right away. Zendesk shows it in full only once.
Zendesk Admin Center OAuth clients page with an Add OAuth client button, a note about global OAuth clients, and a table listing identifier, name, description, company, created by, created at, tokens and status.
Where your OAuth client lives, as shown in Zendesk's guide to managing OAuth tokens.

One thing to know before you pick an owner: client credentials tokens act on behalf of the admin who created the OAuth client, so create it as a Guide admin whose account will stick around. If that admin loses access, the tokens stop working, per Zendesk's OAuth setup article. Our OAuth app walkthrough has more screenshots.

Step 2: get an access token

For a script with no user clicking "approve", the OAuth migration guide recommends the client credentials grant:

Bash
curl -X POST https://yoursubdomain.zendesk.com/oauth/tokens \
  -H "Content-Type: application/x-www-form-urlencoded" \
  --data-urlencode "grant_type=client_credentials" \
  --data-urlencode "client_id=your_client_identifier" \
  --data-urlencode "client_secret=your_client_secret" \
  --data-urlencode "scope=read write"

The response holds an access_token with expires_in: 1800 (30 minutes by default) and no refresh token. When it expires, request a new one the same way. Save it for the next steps:

Bash
export ZENDESK_TOKEN="paste_the_access_token_here"

On scope: Zendesk's scope list has hc:read and hc:write but doesn't name redirect rules, so I use read write (what an API token had). Our OAuth scopes guide covers narrowing it once your script works.

Step 3: create a redirect rule

Send a POST to /api/v2/guide/redirect_rules:

Bash
curl https://yoursubdomain.zendesk.com/api/v2/guide/redirect_rules \
  -X POST \
  -H "Authorization: Bearer $ZENDESK_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "redirect_rule": { "redirect_from": "/hc/en-us/articles/123456", "redirect_to": "https://yoursubdomain.zendesk.com/hc/en-us/articles/789012", "redirect_status": 301 } }'

The fields:

  • redirect_from: the old path, starting with /. Drop the slug after the article ID: /hc/en-us/articles/123456-Installation-and-setup becomes /hc/en-us/articles/123456.
  • redirect_status: 301 for permanent moves, 302 for temporary ones.
  • redirect_to: the new URL or path, starting with https://, http:// or /.

To change a rule, POST again with the same redirect_from. Zendesk updates redirect_to and redirect_status on the existing rule.

Step 4: test it

  1. Open an incognito window and go to the old URL.
  2. Confirm you land on the new article.
  3. In your browser's developer tools (Network tab), check that the first response is a 301.

If nothing happens, check that the old article is archived or deleted. A published article keeps serving its own page.

Step 5: list and delete redirects

List your rules (you can filter by path prefix and sort):

Bash
curl https://yoursubdomain.zendesk.com/api/v2/guide/redirect_rules \
  --get \
  --data-urlencode "filter[redirect_from_prefix]=/hc/en-us" \
  --data-urlencode "sort=redirect_from" \
  --data-urlencode "page[size]=100" \
  -H "Authorization: Bearer $ZENDESK_TOKEN"

The endpoint supports cursor pagination only. When meta.has_more is true, repeat the request with --data-urlencode "page[after]=..." set to the meta.after_cursor value, as Zendesk's pagination docs describe (our cursor pagination guide shows the same pattern for tickets).

To delete a rule, take its id from the list:

Bash
curl https://yoursubdomain.zendesk.com/api/v2/guide/redirect_rules/01GFXGBX7YZ9ASWTCVMASTK8ZS \
  -X DELETE \
  -H "Authorization: Bearer $ZENDESK_TOKEN"

Our Zendesk API error codes guide helps if you get a 401, 403 or 422 back.

Method 2: the JavaScript redirect workaround

If you can't use the API, or need a quick fix for a few articles, a JavaScript redirect in your theme works. Know the tradeoff upfront: the redirect runs after the page loads, and Zendesk says these redirects "may affect Google search rankings" and "aren't suitable for long-term or large-scale deployment."

Step 1: open your theme code

Zendesk's article recommends copying your theme as a backup before you touch it. Then:

  1. In Knowledge, select Knowledge admin.
  2. Click the Customize design icon in the sidebar.
  3. Click Customize on your theme.
  4. Click Edit code.
  5. Open script.js.
Zendesk theme editor showing a sidebar of page element settings, a help center preview with Promotions and Refunds blocks, and Edit code and Publish buttons at the bottom right.
The Edit code button sits at the bottom of the theme editor, per Zendesk's theme customization guide.

Two notes for 2026. If you edit an older theme, Zendesk's templating API v1 to v3 is reaching end of life: importing those themes is blocked for new accounts since September 14, 2026 and for all accounts from March 1, 2027, per the developer changelog. And from templating v2 on, jQuery only works if your theme imports it. The code below doesn't need it. Our theme update guide covers moving to a current theme.

Step 2: add the redirect code

In older themes, script.js starts with $(document).ready(function() {; put the code directly above that line. Recent Copenhagen versions use window.addEventListener("DOMContentLoaded", ...) instead; put the code outside that listener.

JavaScript
// Map old article IDs to new article IDs
var oldIds = ["217352077", "216552968"];
var newIds = ["216553098", "216552958"];

for (var i = 0; i < oldIds.length; i++){
  if (window.location.href.indexOf(oldIds[i]) > -1) {
    window.location.href = 'https://yoursubdomain.zendesk.com/hc/en-us/articles/' + newIds[i];
  }
}

Swap in your own article IDs (the number after /articles/ in the URL, or pull them in bulk with the Zendesk articles API), keep them in quotes, and keep the positions matched: the first old ID goes to the first new ID.

For language fallbacks (sending readers to your default language when a translation doesn't exist):

JavaScript
var notDefaultLanguage = window.location.href.indexOf('/en-us/') == -1;
var isArticle = window.location.href.indexOf('/articles/') > -1;
var isErrorPage = document.getElementsByClassName("error-page").length > 0;

if ( isArticle && notDefaultLanguage && isErrorPage ) {
    var newURL = window.location.href.replace(/(.*\/hc\/)([\w-]+)(\/.*)/, "$1en-us$3");
    window.location.href = newURL;
}

Replace en-us with your default language code if it's different. If your theme's 404 page doesn't use the error-page class, check its template and adjust the selector.

Step 3: publish and test

  1. Click Publish.
  2. Test the old URLs in an incognito window, on desktop and mobile.
  3. Clear your browser cache if the change doesn't show.

Common Zendesk Guide redirect scenarios

Redirecting deleted or archived articles in bulk

After a big reorganization, script the API calls. This Python example gets a fresh OAuth token, then creates each rule:

Python
import os
import requests

BASE = "https://yoursubdomain.zendesk.com"

def get_token():
    response = requests.post(
        f"{BASE}/oauth/tokens",
        data={
            "grant_type": "client_credentials",
            "client_id": os.environ["ZENDESK_CLIENT_ID"],
            "client_secret": os.environ["ZENDESK_CLIENT_SECRET"],
            "scope": "read write",
        },
    )
    response.raise_for_status()
    return response.json()["access_token"]

redirects = [
    ("/hc/en-us/articles/111", "/hc/en-us/articles/222"),
    ("/hc/en-us/articles/333", "/hc/en-us/articles/444"),
]

headers = {"Authorization": f"Bearer {get_token()}"}

for old_path, new_path in redirects:
    payload = {
        "redirect_rule": {
            "redirect_from": old_path,
            "redirect_status": 301,
            "redirect_to": f"{BASE}{new_path}",
        }
    }
    response = requests.post(
        f"{BASE}/api/v2/guide/redirect_rules",
        json=payload,
        headers=headers,
    )
    print(f"{old_path}: {response.status_code}")

Keep the client ID and secret in environment variables. The token lasts 30 minutes, so on a long list, call get_token() again partway through. Big batches can also hit Zendesk's rate limits.

Moving an article to another section

Move articles under Knowledge admin > Arrange content > Arrange articles, then Move to in the options menu (moving articles guide). Article URLs are built on the ID, not the section, and the doc doesn't mention the URL changing. If you copy the article into a new one instead, archive the old one and add a redirect.

Migration redirects

Moving to Zendesk means new URL patterns, for example:

  • Old: /support/solutions/articles/1234
  • New: /hc/en-us/articles/5678

Create one rule per old URL (remember /knowledge/ paths can't be sources). Our Gorgias to Zendesk migration guide covers the rest of a move.

Troubleshooting common issues

Redirects not working at all. Check the old article is archived or deleted. Redirects only fire on a 404, so a published article wins.

Query parameters disappear. Redirect rules match the path, but they strip query parameters from the redirect, so ?utm_source=email or pre-filled form fields don't carry over. Users have asked for passthrough in a Zendesk community request.

Cloudflare proxy complications. If you host-map a custom domain and "orange cloud" (proxy) the CNAME pointing to Zendesk, Cloudflare for SaaS routes traffic straight to Zendesk and skips the redirect rules in your Cloudflare zone, as a Cloudflare team member explained on the Cloudflare community. The suggested fix is a separate proxy hostname plus Origin Rules. Zendesk's own redirect rules aren't affected.

401 Unauthorized. The token expired, or the OAuth client's creator lost admin access.

SEO best practices for Zendesk Guide redirects

When to use 301 vs 302 redirects

Use 301 (Moved Permanently) when an article is replaced for good or you're migrating. Use 302 (Found) when the original might return.

Avoid redirect chains

Don't chain Article A to B to C. Search engines may stop following after a few hops. Point every old URL at the final destination.

Update links inside your articles to point at the new URLs; a help center broken link check finds the ones you missed. It's also a good moment to tidy meta titles and descriptions.

Watch for 404s

Add your help center to Google Search Console and check the Pages report for "Not found (404)" URLs. Each one is a redirect you may need. Our technical SEO entry covers the basics.

Where eesel fits in a Zendesk help center

Redirects keep old links alive; they don't keep your knowledge base answers current. That's the part eesel AI for Zendesk helps with. eesel is an AI teammate that joins your Zendesk queue, learns from your past tickets, help center and docs (Confluence, Google Docs, Notion and more), and gets tested against old tickets before it replies to a real customer.

You set what it may do per kind of person: act alone when your support lead asks, ask first when a verified customer does, stay out of billing for an anonymous visitor (actions and approvals). Instructions are plain English, like "If the refund request is over 30 days, politely decline." For developers, there's also the eesel CLI.

eesel chat window where a user updates the AI teammate's instructions in plain language and eesel confirms the change.
Changing eesel's instructions is a chat message, not a settings hunt.

eesel is priced per ticket, and you can try eesel free on your own Zendesk data.

Start managing your Zendesk Guide redirects

For anything with search traffic, the Redirect Rules API is the clear pick, and setting it up with OAuth now means it keeps working after API tokens end on April 30, 2027. Keep JavaScript for small, short-term fixes. And if you're rethinking your Zendesk knowledge management more broadly, eesel AI can answer from that content inside your Zendesk queue.

Frequently Asked Questions

How do I set up a redirect in Zendesk Guide?
Archive or delete the old article, then send a POST request to /api/v2/guide/redirect_rules with redirect_from, redirect_to and redirect_status (use 301). You authenticate with an OAuth access token; our Zendesk OAuth app guide covers creating the client.
Can you set up a Zendesk Guide redirect without using the API?
Yes, with JavaScript in your theme's script.js file (Knowledge admin, Customize design, Customize, Edit code). Zendesk warns these redirects may affect Google rankings and aren't suitable for long-term or large-scale use, so keep them for a few low-traffic pages. See customizing your Zendesk help center for theme basics.
What's the limit for Zendesk Guide redirect rules?
Zendesk allows up to 50,000 redirect rules per brand. If you run several help centers, each brand has its own allowance; our multi-brand help center guide explains how brands work.
Do Zendesk Guide redirects work for archived articles?
Yes. Redirect rules fire on URLs that return a 404, and Zendesk's API docs say the article "must be archived or deleted" for the redirect to work. A published article keeps serving its own page. For keeping your content current before it needs a redirect, see detecting outdated help center content.
Can I still use a Zendesk API token for redirect rules?
Only if you already have one. Accounts created on or after July 28, 2026 can't use API tokens, nobody can create new ones since October 27, 2026, and every token stops on April 30, 2027. Use OAuth instead; our Zendesk API authentication guide walks through it.
Can you redirect Zendesk Guide URLs to external websites?
Yes. Set redirect_to to any URL starting with https:// or http://. That's handy when you migrate away from Zendesk and want old help center links to land on the new site.
Why isn't my Zendesk Guide redirect working?
The usual causes: the old article is still published (it must be archived or deleted), the redirect_from path still has the slug after the article ID, or a Cloudflare proxy in front of a host-mapped domain is skipping your rules. Our Zendesk theme issues guide helps if the JavaScript route is the one failing.
How do you handle Zendesk Guide redirects during a platform migration?
Map every old URL to its new Zendesk URL in a spreadsheet, then loop over it with a script that calls the Redirect Rules API. Paths starting with /knowledge/ (common on HubSpot) can't be redirect sources. Our Zendesk article import guide covers moving the content itself.

Share this article