Subdomain vs subdirectory: which is better for a blog?
A subdirectory puts the blog in a folder of your main domain, like yoursite.com/blog, while a subdomain is a separate host name, like blog.yoursite.com.
How do they compare?
Google says it can handle both. Many SEOs still prefer a subdirectory for a company blog, because the links and attention each article earns build up on the same domain as the product pages.
A subdomain is simpler to set up when the blog runs on a different platform from the main site. A reverse proxy removes that trade-off by serving the blog at /blog from any platform.
How does Ranken help?
Ranken serves your blog at /blog on Next.js, Shopify, Webflow, WordPress and more, or on a subdomain if you prefer.
Related terms
- Custom domainA custom domain is a web address you own, like yourbrand.com, used instead of a platform's default address.
- Canonical URLA canonical URL is the preferred address of a page when the same content is reachable at several URLs, declared with a rel="canonical" link tag.
- Blogging platformA blogging platform is a service for writing, publishing and hosting a blog, from general tools like WordPress to SEO-focused CMSs like Ranken.
- URL slugA URL slug is the readable last part of a URL that identifies a page, like how-to-start-a-blog in yoursite.com/blog/how-to-start-a-blog.
Stop managing SEO by hand
Ranken builds schema, sitemaps, canonical URLs, llms.txt and indexing into every post, on your own domain or /blog.