Shopify themes, liquid, logos, and UX
Hi,
Is there any way to remove /Pages from URL.Currently, my page URL is ".com/pages/about-us" i want to change to ".com/about-us".I tried URL redirect method Navigation settings and edit the code from theme.liquid to like this,
{% if template contains 'collection' and current_tags %}
<meta name="robots" content="noindex" />
<link rel="canonical" href="{{ shop.url }}{{ collection.url }}" />
{% else %}
<link rel="canonical" href="{{ canonical_url }}" />
{% endif %}
Still it did not work. Please help me.Thank you.
Hi, there!
Lisa here from the Social Care Team. The navigation redirect will not help with what you're trying to achieve by removing 'pages' in your URL. Please try the instructions in this document here to update the path to the target URL.
When you provide a full URL as the value of the path property, it will be saved as an absolute path without the domain. For example, "path": "http://www.johns-apparel.com/springwear" will be saved as "path": "springwear".
You then need to create a manual redirect by allocating this path to its target:
POST /admin/redirects.json
{
"redirect": {
"path": "/about-us",
"target": "/pages/about-us"
}
}
Hopefully, this will help mask the 'pages' and allow you to just show .com/about-us when sharing your page.
Best of luck!
- Lisa
To learn more visit the Shopify Help Center or the Community Blog.
Hi Lisa,
Is there a way to add/edit the manual redirect to a current theme redirect.json file?
Usually I am in the code backend of our theme and make additions/mods there.
I would be looking to add:
{
"redirect": {
"path": "/returns",
"target": "/pages/returns"
}
}
Thanks!
Hey, Mike!
Lizzy here, I’m a Shopify support Guru.
The redirects that Lisa has explained here work as a back end alternative to creating a URL redirect under Admin -> Online Store -> Navigation -> URL Redirect. The steps for the latter are explained in this guide here.
How these redirects work is that if the URL leading to storename.com/returns was broken, you could use these steps to set up a redirect that sent storename.com/returns to storename.com/pages/returns, where the page is currently hosted. This is useful if you're migrating to Shopify from another platform and need to use redirects to make sure any old links to your site still direct to the correct information. While you can set up redirects without "pages" in the path, you cannot alter the actual URL of the page to remove "pages."
I hope this helps with what you're looking to set up! Please feel free to let me know if you have any further questions about this.
Thank you,
Lizzy
To learn more visit the Shopify Help Center or the Community Blog.
Hi Lizzy,
We are trying to do the same with our Shopify sites. Our SEO gurus are not happy /pages, /blog, /collections, /products etc has to be within the URL. I can't say we're too happy either (as I can see is a theme across multiple forums).
Are you saying there is no way at all to remove this is you are hosted with Shopify?
Are you saying there is no way at all to remove this is you are hosted with Shopify?
Correct. The resource makers like /pages, /collections, etc can't be removed.
Hi Jason,
Thank you for your reply.
On the back of a lot of research on this, we have found this article. Can you confirm this could work and shouldn't harm the Shopify setup?
https://paulnrogers.com/how-to-change-the-product-url-structure-in-shopify/
Cheers
Did you try it and see if it works?
I just did but it didn't work 😞
To me it seems crazy that this has been an issue/request from Shopify users for quite some time now (I've noticed in multiple other Shopify forum chats), but there seems to be no word on ever changing it. Disappointing to say the least.
Don't get me wrong - I love Shopify, but there are a fair few SEO related issues that can't be changed, which is ultimately frustrating when trying to up search rankings.
I also find it crazy that this is an unfixable issue. I was on with chat support asking about this issue and found this thread while I was awaiting a reply. I just started my store on Shopify so I'm definitely going to cancel and request a refund. It is unquestionably sub-optimal to have a longer URL like the ones forced upon Shopify stores - if they won't prioritize my company's success, I'm not staying on the platform.
Hi @MarkZanghi.
At this time, there is not a way to remove the /pages, /products, etc. sections of your URL. This section of the URL path is used to access the different areas of your store.
I understand that this is a feature that would be useful to many of you, which is why I have made sure to pass along a feature request to our development team. I also wanted to thank you for taking the time to share your thoughts and feedback on this with us, so that we can keep working on ways to improve Shopify!
Thank you again,
Lizzy.
To learn more visit the Shopify Help Center or the Community Blog.
Hi Shopify Team,
I'm an SEO and just wanted to help a friend optimising his shop, when I stumbled across this issue.
Not giving customers a solution out of this suboptimal (to say the least) url structure is a clear flaw in your product. Please do yourselves + customers a favour and fix it soon.
Sincerely,
Felix
@Lizzy You mentioned you have passed this on to your devs in June. Can you give us an update regarding the issue, please?
Seems as if no one gives a crap... Seriously though it makes everyone's shop almost seem sketchy due to other Shopify users rep... Why is this such a big issue to fix? Why was this implemented in the first place? We pay for a service, therefore we deserve to have our requests acted upon! We haven't even got an explanation to say the least...
Hello everyone! I just switched from shopware to shopify. Are there any news for better SEO urls? I worry that there are no news for us since the post of b2 is just a few days old.. nevertheless this is a another comment to hopefully hit shopifys customer service radar..
I'm no SEO expert, can someone elaborate on why this is such a big issue for you concerning SEO? I personally think it adds readability to the url, but I'd like to know why the concern.
I'll try to put it simple:
A. The shorter and
B. the more clear a url,
C. while still revealing the hierachy (correct URL path) of the given page
D. and while using the main keyword,
the more likely it will rank and get a better CTR.
Hello.
I wanted to post here to let you all know that I have shared this thread and feedback with our team. While I don't have a timeline or guarantee that this will be adjusted, I wanted to thank you for taking the time to share all of these thoughts with us.
Without your input, we wouldn't be able to continue improving Shopify as a platform.
I completely understand how the ability to adjust URL structures is in important feature to our business owners and will make sure to relay that importance to our developers. In the meantime, I wanted to share this page which highlights some of the built in features we have to help with SEO already within the admin.
I also wanted to share this link to the Shopify Changelog. Here, you can keep up to date with all of the updates we make to the platform as they roll out.
Thank you again for contributing to the community.
Lizzy.
To learn more visit the Shopify Help Center or the Community Blog.
Hi @Lizzy ,
what a great an fun example...
Shopify itself is not using its own "URL ruleset":
I would love to have the same URL structure, just like shopify mothership www.shopify.ca/online and not www.shopify.ca/pages/online
instead the only option i get is:
Please help us get traction on this functional change!
How many customers / requests does it take to get attention?
Hello @Lizzy ,
Please let me explain why is so important for us.
Google ranks pages based on the keywords used but also on the type of page / link optimized (homepage, category, subcategory, product).
A page will have a higher indexing force on a keyword depending on the type of page that word is targeted to, as follows:
1-Homepage - the most powerful
2-Page of category - second most poweful
3-Page of subcategory - 3 rd most powerful
4-Product page - 4th most powerful
By example: If i target the keyword "business suits" in category page (link,meta title and meta description), google will rank me better than other site who target same keyword in subcategory page (link, meta title, meta description).
My link in google search will look like www.myshop.com/business-suits and the other shop link will look like www.othershop.com/suits/business-suits.
In the real life, on Shopify, if i want to target same keyword in category page, my link will look like www.myshop.com/collections/business-suits , and that means you've just downgraded me into a subcategory page and the other shop can rank better than me and outperform me in the position of google search.
All other SEO techniques that are permited by Shopify (meta titles, Meta description) will not work without the link optimization and the site will remain mediocre.
I hope I made myself clear and this issue will be soon gone. If not, i think that a lot of sites will leave Shopify.
I personally intend to migrate to Shopify from a small local platform in Romania (that by the way, offers the link optimization posibility), but after finding out that the link cannot be SEO optimized, I am not so sure about migration, even though I worked almost 20 days for the shop setup on the Shopify.
Thank you very much!
Can't agree more!
and to add my point again: Shopify themselves don't use their own /pages structure... so why are we forced to?
@Lizzy and @Jason I appreciate everything you all do and you have a ton of wisdom in the posts in this community.
We're all hoping this request will be heard and implemented. Would you please re-approach your team about making this update and actually get confirmation that it will be updated and a timeframe? Thank you very very very much!
Yessss!!
Wait, so you can't have something like :/skin-conditions/eczema/ but have to have /pages/eczema/
I was able to craft URL's back in 2000 on an ecommerce solution. This is very basic.
I would like to add myself to the list of people that are asking for a fix to this real SEO issue.
@Lizzy are you able to provide an update with regards to this issue?
As mentioned in my previous post above, can you please get your team leader or an experienced expert to provide a reason why this feature has not been looked at and implemented?
i appreciate all of your help so far on this thread but as you are not the decision maker for something like this I want this to be looked into further.
Shopify customers deserve an answer.
Hi,
Just want to join this conversation. 🙂
Our urls are way to long and they just don't look any good. I'm not even starting on SEO side of things and sharing the links around... It would be great to have an option to get rid of /collections / pages / products ect.
Looking forward into progress on the matter.
Warm wishes
Theriion
I'm a web developer wishing to set up a store with Shopify. I'm gobsmacked this is even a thing. I want my url to be www.xx.com/electronics/tvs for example, not www.xxx.com/collections/electronics and www.xxx.com/collections/tv
This really makes little sense from a SEO perspective. Can Shopify surface a url rewriting config page so I can have more control over the site structure.
Timb -- couldn't agree more. And thanks for hopefully getting this back on Shopify's radar. It's something I've been puzzled by for quite a while.
I assume there's a logical reason for this since there's no way Shopify just overlooked it. A solution to this should be figured out ASAP. I encourage the many others I'm sure are are here for the same issue to comment and get this flagged to the top!
Same issue here, Please fix asap
User | RANK |
---|---|
142 | |
110 | |
79 | |
64 | |
63 |
Explore the 30-30-30 rule, a dynamic social media strategy for new businesses. Learn how t...
By Trevor Sep 20, 2023Discover how to leverage the often overlooked footer of your ecommerce site to gain custom...
By Skye Sep 15, 2023In this blog, we’ll be shining a light on Shopify Partners, Experts, and Affiliates. Who a...
By Imogen Sep 13, 2023