Subdomain
WebsitesA prefix attached to your main domain — like blog.roelu.com or app.stripe.com — that points to a separate part of your site or a different application…
Subfolder
A subdirectory is a path appended to a domain — for example, roelu.com/blog or stripe.com/customers. Also called a subfolder, it lives on the same site under the root domain, unlike a subdomain, which is a separate DNS entry. The subdirectory vs subdomain debate matters most for SEO: search engines treat subdirectories as part of the main site and pass authority more directly than they do across subdomains on the same brand.
Most companies pick subdomain vs subdirectory based on what their CMS makes easy, not what is right for the business. That is backwards. If the goal is to rank — and for a marketing blog, it usually is — subdirectories almost always win. Authority earned by the main site flows into /blog and /resources. Subdomains start from zero. Every backlink to your blog post helps the whole domain rank. We have seen companies move a blog from blog.company.com to company.com/blog and see organic traffic double within six months. The infrastructure work is real, but so is the upside.
A subdirectory is created by configuring your web server or framework to serve specific content at a given path. On a Next.js or Astro site, you create a /blog folder in the project, and the framework generates the URLs automatically. For content pulled from a separate CMS, the build process queries the CMS and renders posts under /blog. Reverse proxies like Cloudflare Workers or Vercel rewrites can also map a subdirectory to a different application — making roelu.com/docs serve from a different platform while staying on the same domain. The visitor sees one site. SEO authority compounds on the root.
A prefix attached to your main domain — like blog.roelu.com or app.stripe.com — that points to a separate part of your site or a different application…
The way the paths on your website are organized — like /pricing or /case-studies/acme — designed to be readable, predictable, and useful for both search…
Optimizing a website to rank in multiple countries and languages — hreflang tags, content localization, and the infrastructure to keep search engines from…
The human-readable address visitors type to reach your website — like roelu.com — instead of the string of numbers the internet actually uses to find the…
An instruction that sends visitors and search engines from one URL to another — used to fix broken links, consolidate pages, or move content to a new address…
Linking between pages on your own site to guide visitors deeper, pass authority to important pages, and show search engines how the content on your site…