Redirect from existing Shopify site to a external weblink

Hi,

I have an existing Shopify website / online store. I also want to be able to redirect one of my Shopify website / online store webpages to a completely external website. How do I do that?

The existing answers I see on this Discussion panel do not answer the use case I have per above.

Also - just by adding a redirect into “managing your URL redirects” does not work for this use case either.

Thanks

  1. Locate the menu that contains the webpage you want to redirect. It could be the main menu or a custom menu.

  2. Find the specific link or item in the menu that corresponds to the webpage you want to redirect. Click on it to edit it.

  3. In the URL field, enter the full external website URL where you want the webpage to redirect to.

  4. Save the changes to update the menu item.

By updating the URL of the menu item to an external website URL, you effectively redirect the webpage to the external destination. When users click on the menu item, they will be taken to the specified external website instead of navigating within your Shopify store.

What if you want to redirect a page that they land on some other way besides the menu? For example, there are times when the customer will get to a collections page, but you want that page to redirect to an external link. Adding a redirect to an external page on the redirects page doesn’t work. How to do it?

  1. Access your Shopify Admin Dashboard: Log in to your Shopify account and access the admin dashboard.

  2. Go to Theme Editor: Navigate to “Online Store” > “Themes” in your Shopify admin dashboard. Find the theme you want to edit and click on the “Actions” button, then select “Edit code.”

  3. Edit theme.liquid file: In the Theme Editor, locate and click on the theme.liquid file under the “Layout” section on the left-hand side.

  4. Add JavaScript redirection code: Inside the theme.liquid file, find the section, and within it, add the following JavaScript code:


Replace ‘YOUR_EXTERNAL_URL’ with the URL of the external webpage you want to redirect to.

Save changes: After adding the JavaScript code, save the changes to the theme.liquid file.

Hope I solved your problem.

1 Like

Read my answer above

thanks

Thanks! I’ll implement it!

this seems to just redirect every page url in the shopify store to whichever external url inputted. Is there a way for it to specifically only redirect from the home page ?

1 Like