How replace url product in shopify - seo

It is possible to do such that url product in shopify instead of ?variant replace with seo friendly path.
what I mean: there are 2 t-shirts blue and white. in shopify, they are displayed as
https://site/collections/tshirts/products/brand?variant=01234567891 as blue
https://site/collections/tshirts/products/brand?variant=01234567892 as white,
and I need to https://site/collections/tshirts/products/brand/blue
https://site/collections/tshirts/products/brand/white

Shopify has a fixed URL structure that can't be modified.
This means that you can't rewrite the URL in any way or form outside the supported standards and the described URL from your question is not supported.
The only way to achieve somewhat this URL is to use the 301 redirects page in Shopify to redirect the URL you want to their Shopify equivalent.

Related

Double forward slash outputting as https:// in Tapcart App from Shopify Site

Working on a Shopify site for a client that utilizes tapcart, which appears to just grab default or inline styles from rich text editor. The problem lies in the product description where we use "//" as a divider.
Product Description // This is a product is how it is supposed to look. It instead appears as:
Product Description https:// This is a product
Not too familiar with how Tapcart works as they don't allow much outside development and can't give an answer as to why this is happening or if there is any way to avoid it. The error does not appear on the actual website. Is there a proper way to escape it? Has anyone seen something like this before?
Thanks!
You can stop using the product description for stuff other than the product description and use metafields instead.
In the shopify admin go to settings -> metafields and define the metafields you need, then go to each product and use the metafields at the bottom rather than using the description to put additional info.

How can I add a custom page to Shopify without the /pages/ URL?

I want domain.com/custompage, but the built in functionality puts all pages inside a /pages/ directory so the URL comes out domain.com/pages/custompage which I don't want.
I found this answer from a Shopify Guru in 2016 that mentions potentially setting up a custom HTML template or using an app, which no longer exists.
Any clues on how to achieve this? I have limited experience with Shopify templates, but could figure it out if someone could point me in the right direction.
This blogger says it can't be done:
"Q: Can you create pages on the root? A: The answer to this is no –> all pages have either /pages/, /collections/ or /products/ in the URL."
However others have told me it is possible. Just not how to do it.
Create a section Name "test" // first a step
Create a page json Name "test" // The second step
After creating the page, JSON does a section test

How to change text in Shopify Admin pages?

I'm trying to change the text "SKU" to something else on the Admin site, in two places:
On the Product Variant column header, when you're looking at the Product in the admin site.
On the Variant Options screen, under the Inventory header.
The purpose is to change the name for the Admin user to see something else, it doesn't need to impact the front end site. I already tried modifying the translation in en.default.json but that didn't work.
Its a build in text in the Shopify pages and code.
You can use a Javascript to do it by writing a Chrome/Firefox extension to do it or using a bookmarklet in your address bar.
A bookmraklet is a JS code which is running on the given page when you click it
Here are few samples:
http://www.hongkiat.com/blog/100-useful-bookmarklets-for-better-productivity-ultimate-list/

Human-readable URL change

Question is the following, we have site with video. Where address is video title, which can changing all the time. For example user upload video and name it "nice video" then he rename it to "nice video in London". So in this case URL also changed from "http://example.com/video123/nice-video" to http://example.com/video123/nice-video-in-london.
From my research I found that dailymotion using canonical pointing to the page without any keywords in the URL (example.com/video123). So question which URL will be in SERP?
Question, how should we care of this? Thank you so much in advance for any suggestions on it.
Regards,
Constantine
Answer: You will put in the canonical link the link of the page that you intent to give the credit to. The page that is gonna show on SERP is the one its' link is INSIDE the canonical link tag and not the one that HAS the tag.
Why:
Page0 = http://example.com/video123/nice-video-in-london
Page1= http://example.com/video123/nice-video
The canonical link is used so u can make clear to the crawl bots the page is a "dublicated content" and the original is the "canonical link". So in your example the search engine is looking at the page 0 which is "http://example.com/video123/nice-video-in-london" and find a canonical tag. The search engine understands that this is a dublicated content and looks at the link in the canonical tag (canonical=---->original page1"http://example.com/video123/nice-video"<----) and realises that every traffic u are getting from page 1 should be added to the traffic of page 0. And for that reason the page 1 --->video123/nice-video-in-london.<--- is getting zero traffic while the page 0 --->video123/nice-video<--- is getting traffic accounted for both pages AND this page will show on SERP for obvious i think reasons.
Let me know if u have more questions on that or if you need some more details on how or why it works that way.

How to index Dynamic url page

I have a site that look like this:
Main page (index.php)
where a user can research a business.
To display result at page (search/index.php), the page url will look something like this:
/search/index.php?what=plumber&where=montreal&page=1
The page will generate dynamic link to access the business profile found. When you click on one of those links, you get here:
/entreprises/index.php?companyName=Something
How can I get the previous link to be indexed on Google?
This appears to be a good situation for the canonical URL tag. You'll want to specify a single URL for the page in question, and then other variations of that url getting to the same page (i.e. searches, tags, etc.) will refer to the stated canonical url as the actual url for SEO purposes.
Google has a detailed description of the tag here:
https://support.google.com/webmasters/answer/139394?hl=en