How to have blog category page URLs in same path as blog posts URL?

I’m creating a CMS collection for a blog for my client. The URL will be like domain.com/blog/blog-name. We also want to have Category pages for the blog. How can I create category pages so they live in the same URL path as the blog collection (e.g. domain.com/blog/category-name).

The only way I see to create a category page is either by a custom page at domain.com/category-name OR creating a separate collection for the categories at domain.com/categories/category-name, domain.com/categories/category-name-2.

I’ve looked at Ramp.com, and they are doing something in Webflow where they have blog posts and categories in the same URL path. Check their blog sitemap here - https://ramp.com/sitemap-blog.xml. For exmaple,

https://ramp.com/blog/working-capital
https://ramp.com/blog/10-approaches-to-control-your-aws-bill

One is a blog post layout and the other is hub page.

Welcome any advice.

What you’re describing above is simply-

  • Static page with the slug blog
  • Collection with the slug blog

That creates;

  • /blog is a static page such as a card view of the recent blog articles
  • /blog/working-capital is an example collection page item URL

When you’re talking about categories, that’s a master-detail relationship.
For example;

  • /blog/finance/working-capital
  • /blog/cost-planning/10-approaches-to-control-your-aws-bill

In a Webflow-hosted site, that can only be done with a reverse proxy

1 Like

@memetican thank you so much for the reply. I figured this was not natively possible in Webflow and would require a third party tool/service. I think for my client we’ll keep it simple and create a CMS Collection for categories and maybe just put in a redirect for the domain.com/categories to point to domain.com/blog. Want to avoid any 404s with the URL paths.