Redirecting traffic from deleted Help Center articles

Return to top

6 Comments

  • David Halewood

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

    Thanks

    0
  • 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. 

    0
  • 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.

    0
  • Harver Admin

    Hi David,

    For a hostmapped domain (example: cocacola.com/help) 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.
    1
  • James May

    Hi everyone i need to redirect from a deleted .pdf

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

     

     
    https://support.support/hc/article_attachments/900009886503User_Guide_April_2021.pdf new
     
    0
  • Jules

    Hello,

    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?
    0

Please sign in to leave a comment.

Powered by Zendesk