Redirecting traffic from deleted help center articles

Return to top


  • David Halewood

    Say we wanted to redirect all articles of one brand to a new brand is that possible?


  • Devan - Community Manager
    Zendesk Community Manager

    Hello @...,

    This article's information with some changes to fit your use case is the best documentation we have available for this ask. I'll reach out to our moderator team to see if they can offer son insight into making these changes. We'll also share this post in our weekly digest so others can share that advice on how to accomplish this. 

    Best regards. 

  • David Halewood

    Hi @..., thanks, would the above solution work across brands, it should from what I've seen but I wonder how SEO might be impacted. We are keen to retain relevance whilst redirecting to our new brand.  Any help from the moderator team would be greatly appreciated.

  • Kay
    Community Moderator

    Hi David,

    For a hostmapped domain (example: you can set-up a 301 Redirect via a .htaccess file.

    Using the .htaccess method won't impact your SEO. The JS redirect might have impact on your SEO.
    From an SEO point of view, a JavaScript redirect is not the most optimal way of redirecting because search engines need to render a page to find the redirectRedirecting using a 301 redirect is always recommended (except if you're looking to temporarily redirect)

    Articles still have the same ID
    If your articles still have the same ID, then you need 1 redirect line.

    Articles with changed IDs
    You will need a single redirect line for each article if your articles no longer have the same article ID.
  • James May

    Hi everyone i need to redirect from a deleted .pdf

    All the methods suggested dont seam to work, Can anyone help? 


  • Jules


    I would like to redirect untranslated articles to the default language article.

    For example, my default language is English and I have French translation. If the French translation does not exist for an article, the user who selects French, is currently redirected to the French home page. But I would like him to be redirected to the English article.

    I tried the code bellow but it doesn't change anything...

    $(document).ready(function () {
    var notDefaultLanguage = window.location.href.indexOf('/en-us/') == -1;
    var isArticle = window.location.href.indexOf('/articles/') > -1;
    var isErrorPage = $("#error-page").length > 0;
    if (isArticle && notDefaultLanguage && isErrorPage) {
    var newURL = window.location.href.replace(/(.*\/hc\/)([\w-]+)(\/.*)/, "$1en-us$3");
    window.location.href = newURL;
    Any idea to help?
  • CJ Johnson

    The instructions on how to redirect for deleted articles, redirect all translations to English. How can I redirect from the deleted articles, to the new article in the language the user has? I tried removing the EN part from the URL, but strangely it made no difference. 

    Edit: To be super clear what code I'm talking about: 

    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 = '' + newIds[i]; } }

    Edit 2: It turns out, removing the en/ *does* work for all languages, it just took a bizarrely long time after publishing to take effect. Whoohoo!

  • Carlo

    Hi, we followed the instructions in the article above to redirect the untranslated article to the original article in English. However, it seems it's not working: this is an article in English that is not translated in German, but if you switch the language to German it redirects you to the home page instead of showing yout the article in English:

    What's wrong?




Please sign in to leave a comment.

Powered by Zendesk