https://kashco-interiors.myshopify.com/collections
I want this page not to be visible.
Password: kashco
A user sought to hide their /collections page from public view on their Shopify store.
Initial Solutions Proposed:
/collections to the homepage or another pageProblem Encountered:
/products, /collections, or /collections/allWorking Solution:
A JavaScript workaround was provided to add to the theme.liquid file after the <body> tag:
if (window.location.pathname === '/collections') {
window.location.href = '/collections/all';
}
Resolution: The user confirmed this JavaScript solution worked successfully.
https://kashco-interiors.myshopify.com/collections
I want this page not to be visible.
Password: kashco
Hi @kashco ,
To hide the /collections page from the frontend and redirect it to another page, follow these steps:
This method ensures proper redirection without affecting SEO rankings.
Hi Kashco,
The simplest method, in my experience, is to create a URL redirection:
Head over to your Shopify admin
Navigate to “Online Store > Navigation > URL Redirects”
Create a new redirect with:
Original URL: /collections
Target URL: / (your homepage) or any other page you prefer
Save the redirect
This little trick will automatically redirect visitors trying to access the /collections page to your homepage or another page of your choice, while still maintaining access to individual collections. I’ve done this for several clients and it works like a charm!
Let me know if that helps you.
Best regards
No. It doesn’t work well. /collections to redirected to this /collections/all not working.
But doesn’t work for me.
Redirect from: /collections to even /, when I visit the url it still shows it.
Try another one and put this in the theme.liquid file after starting of tag
Brilliant