Articles in this section
Category / Section

KB URL Redirection: A Step-by-Step Approach

Published:
New

The Redirect Rule comprises two types. They include:

  • Full Redirect
  • Replace

How to create a full redirect rule

Follow the given steps to create a full redirect rule:

  1. Navigate to Admin module > Redirect Rules > ADD Rule.
  2. Select the Redirection Type as Full Redirect.
  3. In the Redirect From field, enter the full URL or the URL path after the domain that you want to redirect.
  4. In the Redirect To field, type the full URL or the URL path after the domain that you want to redirect to.

CreateFullRedirect.png

  • For example, you want to redirect to any URL in the knowledge base page.

    • Redirect From: https://{domain}/kb/article/1/creating-and-managing-articles
    • Redirect To: https://{domain}/kb/article/2/how-to-creating-article

CreatedFullRedirect.png

  1. Match Query String: If the match query string Boolean property is enabled, the redirect rule will only apply if the query string in the Redirect From URL and Customer Portal URL are exactly matched.

    • Redirect From: https://{domain}/kb/article/1/creating-and-managing-articles?isInternalRefresh=False
    • Redirect To: https://{domain}/kb/article/2/how-to-creating-article
  2. Ignore Trailing Slash: If the Ignore Trailing Slash Boolean property is enabled, the redirect rule will only apply if the Redirect From URL does not contain a slash at the end, and the Customer Portal URL should.

    • Redirect From: https://{domain}/kb/article/1/creating-and-managing-articles
    • Customer Portal URL: https://{domain}/kb/article/1/creating-and-managing-articles/

Multi-language support in full redirect

  1. When multi-language is enabled, you can set the redirect rule for any language.

  2. For multi-language enabled need to add the language code.

    • For example, you want to redirect to any URL in the Knowledge Base.
      • Redirect From: https://{domain}/{language_code}/kb/article/1/creating-and-managing-articles
      • Redirect To: https://{domain}/{language_code}/kb/article/2/how-to-creating-article
  3. If the URL does not contain the domain, start with the language code.

    • For example, you want to redirect to any URL in the Knowledge Base Page.
      • Redirect From: /{language_code}/kb/1/creating-and-managing-articles
      • Redirect To: /{language_code}/kb/2/how-to-creating-article

How to create a replace redirect rule

Follow the given steps to create a replace redirect rule:

  1. Select the Redirection Type as Replace.

  2. Redirect From: Type any part of the URL you want to redirect.

  3. Redirect To: Type any part of the URL that you want to redirect to.

CreateReplace.png

  • To redirect to any URL in the knowledge base page, consider the following example. Replace the part /1/creating-and-managing-articles in the customer portal URL with /2/how-to-creating-article.

    • Redirect From: /1/creating-and-managing-articles
    • Redirect To: /2/how-to-creating-article

CreatedReplace.png

  1. Match Query String: When the ‘Match Query String’ Boolean property is enabled, the redirect rule will only apply if the query strings in both the Redirect From URL and the Customer Portal URL are an exact match.

    • Redirect From: /1/creating-and-managing-articles?isInternalRefresh=False
    • Redirect To: /2/how-to-creating-article
  2. Ignore Trailing Slash: When the ‘Ignore Trailing Slash’ Boolean property is enabled, the redirect rule will only apply if the Redirect From URL does not contain a slash at the end, and the Customer Portal URL should.

    • Redirect From: /1/creating-and-managing-articles
    • Customer Portal URL: https://{domain}/kb/article/1/creating-and-managing-articles/

Multi-language support in replace redirect

  1. When multi-language is enabled, you can set redirect rules for any language.
  2. To set up redirects for multiple languages, include the language code in the URLs.
    • For example, to redirect within the knowledge base page:
      • Redirect From: https://{domain}/{language_code}/kb/article/1
      • Redirect To: https://{domain}/{language_code}/kb/article/2
  3. If the URL does not contain the domain, start with the language code.
    • For instance,
      • Redirect From: /{language_code}/kb/article/1
      • Redirect To: /{language_code}/kb/article/2

Note:

  • If the URL contains a domain, it will be excluded.
  • If the URL does not contain a domain, it must start with a forward slash; otherwise, a forward slash will be added automatically.
  • Redirect From URL and Redirect To URL should not be the same.
  • In the {domain}, you should replace your domain name; in the {languageCode}, you need to replace the language code you need for redirection.
  • In case of replace redirection type, KB should not be replaced in the part of the URL.
Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied