
Creating great content is not always enough to get ranked high in search. Except for the SEO-optimized content, you need to configure blog sitemap, canonical tags, breadcrumbs, metadata, rich snippets, etc. Shopify blog URL structure is also one of the important factors to pay attention to.
Our Shopify Blog App offer you very flexible URL settings. So you can create SEO-friendly blog URLs. Today we'll discuss how you can configure blog URLs and change them when needed.
Note: the option to change blog pages paths is available in the Standard and Pro plans.
Post Contents [hide]
Blog URL Structure
To configure the Shopify Blog URL structure:
1. Navigate to Apps > Magefan Blog > Configuration and scroll down to the Permalink Settings section and set the Blog Route.
Note: if you want to keep the /a/blog/ path in the blog URLs you can leave Blog Route empty.
2. Define Post Path Schema. Available variables here: {
{parent_category}}, { {id}}, { {year}}, { {month}}, { {url_key}}.e.g. some examples of the blog post URLs include:
- https://myshopify.com/a/blog/post/best-hotels-in-dubai
- https://myshopify.com/a/blog/best-hotels-in-dubai
- https://myshopify.com/a/blog/travel/best-hotels-in-dubai
- https://myshopify.com/a/blog/2022/10/best-hotels-in-dubai
3. Set Category Path Schema. Available variables here: {
{parent_category}}, { {id}}, { {url_key}}.e.g. some examples of the blog category URLs include:
- https://myshopify.com/a/blog/category/destinations
- https://myshopify.com/a/blog/destinations
- https://myshopify.com/a/blog/travel/destinations
- https://myshopify.com/a/blog/268/destinations
4. Specify Search Path Schema. Available variables here: {
{url_key}}.5. Define Tag Path Schema. Available variables here: {
{id}}, { {url_key}}.e.g. some examples of the blog tag page URLs include:
- https://myshopify.com/a/blog/tag/safari
- https://myshopify.com/a/blog/safari
- https://myshopify.com/a/blog/35/safari
6. Specify Author Path Schema. Available variables here: {
{id}}, { {url_key}}.e.g. some examples of the blog author page URLs include:
- https://myshopify.com/a/blog/author/veronica-costello
- https://myshopify.com/a/blog/veronica-costello
7. Set Archive Path Schema. Available variables here: {
{id}}, { {url_key}}.e.g. some examples of the blog archive page URLs include:
- https://myshopify.com/a/blog/archive/2023-03
- https://myshopify.com/a/blog/2023-03
The url_key for blog posts, category, tag and author pages are defined separately when you create those pages.
Domain Used on Frontend
It's important to choose the Domain used on frontend, so your blog URLs don't look like this either on the frontend or the sitemap:
e.g. https://my-domain-name.myshopify.com/a/blog/blog-path/post/post-path
The /a/blog/ in URLs
The last section of the Shopify Blog permalink settings is in the App Proxy. It's the obligatory part that comes from the Shopify app proxy.
You can change the Subpath /a/ prefix to some available options and /blog/ Subpath to anything you want. More about this in the article about how to remove /a/ from blog URLs.
URL Redirects
Don't forget to Save the permalink settings once you finish and check your blog URLs on the frontend.
However, if you've had a different blog URL structure before, you must create blog redirects to avoid 404 issues.