All things Shopify and commerce
Hello!
I am trying to set up a URL redirect and it doesn't seem to be working. my current URL is /www.churchav.ca/pages/bosepro. I want to be able to tell people to go to /www.churchav.ca/bosepro and have it redirect to the correct page that has the /pages slug in it. This is my workaround since I can't remove the /pages slug from the URL. I have checked the code but I'm not an expert and don't know how to make this work. I have created a redirect in the URL redirects page for /www.churchav.ca/bosepro to /www.churchav.ca/pages/bosepro. I have also tried simply putting in /bosepro to /pages/bosepro. I discussed this issue with an online chat function with a shopify team member and they directed me here as they could not figure out the issue.
Please help!
Solved! Go to the solution
This is an accepted solution.
Hello
You can try this
1. Go to Online Store / Themes / Edit Code
2. Find theme.liquid file
3. Add script anywhere
<script>
if (window.location.href === "https://www.churchav.ca/bosepro") { window.location.href = "https://www.churchav.ca/pages/bosepro"; }
</script>
This is an accepted solution.
Hello
You can try this
1. Go to Online Store / Themes / Edit Code
2. Find theme.liquid file
3. Add script anywhere
<script>
if (window.location.href === "https://www.churchav.ca/bosepro") { window.location.href = "https://www.churchav.ca/pages/bosepro"; }
</script>
Thank you so much! This works great!
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024