Hide collections from the website and remove the link

Topic summary

A user sought to hide their /collections page from public view on their Shopify store.

Initial Solutions Proposed:

  • Two respondents suggested creating URL redirects through Shopify Admin (Online Store > Navigation > URL Redirects)
  • Recommended redirecting /collections to the homepage or another page

Problem Encountered:

  • The standard redirect method failed because Shopify doesn’t allow redirects from fixed paths like /products, /collections, or /collections/all
  • The user confirmed the redirect wasn’t working when visiting the URL directly

Working 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.

Summarized with AI on October 31. AI used: claude-sonnet-4-5-20250929.

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.

  1. Go to Shopify Admin > Online Store > Navigation.
  2. Scroll down and click View URL Redirects.
  3. Click Create URL Redirect.
  4. Set:
    • Redirect from: /collections
    • Redirect to: / (or another page you want users to see).
  5. Click Save Redirect.

Hi Kashco,

The simplest method, in my experience, is to create a URL redirection:

  1. Head over to your Shopify admin

  2. Navigate to “Online Store > Navigation > URL Redirects”

  3. Create a new redirect with:

    • Original URL: /collections

    • Target URL: / (your homepage) or any other page you prefer

  4. 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.

  • You can’t redirect URLs that use fixed Shopify paths: /products, /collections, /collections/all.

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