How to Redirect a Page to a Different URL

Joey Gallotta

Updated

Want to use your Kajabi Landing Page URL to automatically redirect a visitor to a different URL? Learn to use the redirect code provided in this guide to automatically redirect your Kajabi Landing Page to a different URL.


In this article:


Redirect a landing page

Use the custom redirect code provided in this guide to automatically redirect visitors to a different URL when they visit your Kajabi Landing Page.

Note:
In order to add custom code, you must have code editor access. Code editor access is available with the Pro Plan.

Step 1. Open the code editor

First, open the code editor to input your redirect code snippet:

  • Select the Website tab from your dashboard.
  • Click Pages.
  • Select the Landing tab.
  • Click ... to the right of your page (next to your page’s visibility status).
  • Select Modify code from the dropdown menu:

Warning:
You will no longer be able to customize your page in Kajabi with a custom code redirect in place. Be sure to remove the custom code redirect before attempting to customize your page.

Step 2. Add the redirect code snippet

Warning:
Introducing custom code to your site can open you up to vulnerabilities and potential malware attacks. We recommend using vulnerability tools like VirusTotal or Snyk to scan any custom code that you intend to use and apply certain best practices to help reduce potential impact.

Paste the code snippet in the <head>section of the index.liquid file:

  • Select the Templates folder.
  • Open the index.liquid file.
  • Copy and paste the Code Snippet (shown below) in the <head> section of your file, making sure to replace https://www.example.com with your URL:

Redirect Code Snippet:

<!-- Page redirect ==================================== -->
<noscript> <meta http-equiv="refresh" content="0;URL=https://www.example.com"></noscript><script> window.location.href = "https://www.example.com";</script>

 

Redirect_Page_1.png

Click to enlarge

  • Click Save when you are finished:

Redirect_Page_2.png

Click to enlarge

  • Click Preview to test your redirect:

Redirect_Page_3.png

Click to enlarge

When a visitor lands on your Kajabi Landing Page, they will now be redirected to the URL you have defined in your code snippet.

 

And that’s how you can redirect a Page! Please vote below and let us know if you found this article helpful. We value your feedback. Thanks for being the best part of Kajabi!

Did you find this article helpful?