URL forward product page or a different page

Solved
Highlighted
Tourist
4 0 0

I was wondering if I can redirect /products/abc to /pages/abc. Is it possible?

0 Likes
Highlighted
Excursionist
25 2 4

Yes, you could achieve this by add javascript to your theme. If you are not familiar with coding, I could help.

0 Likes
Highlighted
Tourist
4 0 0

Yes please help 

0 Likes
Highlighted
Excursionist
25 2 4

This is an accepted solution.

Make sure your pages have exactly same handle as your product

for example /products/abc-123 /pages/abc-123

 

then past this code to Section> product.liquid(Or whatever your product template's name)

<script>
  window.location.href = "/pages/{{ product.handle }}"
</script>
1 Like
Highlighted
Tourist
4 0 0

Perfect! Thank you so much 

0 Likes
Highlighted
Tourist
7 0 0

Hi There!

I believe I am having a similar problem. 

My website www.quicktub.com has two products pages - 1) from the Debut theme (which I don't want) AND 2) for the actual products page I want

RIght now quicktub.com/products carries the user to a page that shouldn't exist but google is currently showing it as one of the top rankings when you search my product "Quick Tub". I have tried many times to redirect this URL to quicktub.com/pages/products in Shopidy but it won't seem to do it.

Ultimately I want it to redirect to the actual page it should be which is quicktub.com/pages/products 

In the ideal world, I would replace the current page quicktub.com/pages/products and properly use quicktub.com/products as the actual page URL as all of my individual products fall under the quicktub.com/products/"product name" 

Not sure of this makes sense but any help redirecting would be fantastic. Thank you!

0 Likes
Highlighted
Shopify Partner
2294 116 353

@staudinger  /products, and /collections , are collections list pages which shows all collections to show all products.

https://shopify.dev/docs/themes/files/list-collections-liquid

Since these are predefined object endpoints for you cannot redirect from them using the shopify navigation redirects in the admin.

And there's no clear reason why you've instead chosen to forcefully use pages/products as the collection display of your offerings instead of the templates specifically meant for that.

I'd assume from the theme and docs poorly communicating during setup about which template is on that page.

Another factor is probably the customize editor shows 'Collections List' but doesn't show 'Products'

i.e. shopify.com/admin/themes/current/editor#/collections vs. shopify.com/admin/themes/current/editor#/products

 

As for why it's so highly ranked though a quick glance on your site doesn't show you linking to it,

however a fast look around shows competing businesses using that url structure very effectively so people may assume the same structure when looking at urls for your site and clicking through, sharing, or referencing in their content.

 

 

 

 

Problem Solved? ✔️Accept and ? Like the solution so you can help others.
Buy me a coffee ☕ paypal.me/paulnewton or donate to eff.org
Confused? Busy? Buy a custom solution paull.newton+shopifyforum@gmail.com
0 Likes
Highlighted
Tourist
7 0 0

@PaulNewton - appreciate you taking the time to respond. The ideal link used would in fact be - quicktub.com/products - unfortunately/fortunately I am using Shogun (I’m not a dev) and it has on its own forcefully made me use that URL this is by no means my choice. 

With regards to page ranking it might be because I switched from an old website in which that was the URL being used - could be old data.

Do you know if there would be a way to fix this in the backend code? 

0 Likes
Highlighted
Shopify Partner
2294 116 353

You cannot change it directly with shopify systems (i.e. no simple redirects).

First you'd want to establish an actual dollar value to this problem and if so consult a SEO specialist. ( or Shogun Expert?)

At the domain level if your name registrar has the tools you may just want to forward that url

There's also using meta refreshes to do the redirect with html (theme code)

 

For shogun contact shogun now that the problem can be described better, and see what options are available.

Beyond that any shogun questions should be in a separate post as it's off topic, either in the design forum or here in TQA

Afaik you can copy the code from and alternate template for pages and just use that elsewhere.

https://getshogun.com/help/en/articles/3299206-how-to-save-a-page-as-a-reusable-template

https://getshogun.com/help/en/articles/3638504-what-additions-does-shogun-make-to-the-theme

 

 

 

Problem Solved? ✔️Accept and ? Like the solution so you can help others.
Buy me a coffee ☕ paypal.me/paulnewton or donate to eff.org
Confused? Busy? Buy a custom solution paull.newton+shopifyforum@gmail.com
0 Likes