Subfolder vs. Subdomain

Hey ! I’m wondering same, if my main website for my web design dubai is hosted here, can I have a blog on a subdirectory instead of a subdomain?

7 years later, but I need to answer, because the currently Accepted Solution is misleading. Maybe just because is outdated.

If you are hosting your website in Hubspot (“example.com”), then I believe you can easily configure Hubspot to have your blog in a folder of the website domain (“example.com/blog”).

But, if you are hosting your website outside Hubspot (“example.com”), a possible solution is to use a reverse proxy. Reverse proxies work like regular proxies (whose full name is forward proxies). A reverse proxy can intercept all requests to “example.com” and redirect them to any server (your original one, or Hubspot).
So, you would need to configure the reverse proxy to redirect all requests pointing to “example.com/blog*” to your Hubspot blog, and the rest of the requests to your original server. It is not an easy process, but is explained in detail in this Hubspot guide (is a pdf file that explain how to set up a reverse proxy using AWS), and also more generally in this Hubspot page about reverse proxies

A generic alternative, which depends on many factors, is to check if you can migrate your website to Hubspot (I believe they have support for SPAs, Wordpress Hosting Partners, and many other options), and to check how difficult it is to configure Hubspot to point “example.com” to the hosting you need, and “example.com/blog” to the blog.

I assume you already solved this problem 7 years ago, but answered anyways for people facing a similar problem (like myself currently)

Hi @David_Alb, hope you are doing well!

¡Thanks for sharing!

Best,

Diana

A subfolder is similar to a subdomain in that it allows you to create categories of content, but they are configured differently on servers. Unlike subdomains, there are no server partitions involved with subfolders. A subfolder is hosted on the same server and any of its links go back to the domain pf website.

can you give me suggestion about my website: https://premiumconstructionpro.com/ subdomain?

Hello, is this answer still the best?

We’re looking to migrate our blog to a subfolder for smoother navigation to and from our website.

I believe I saw a recent mention of Cloudfare in a release, is this something you still can not support?

Great question! Moving a blog from a subdomain to a subfolder can be helpful for SEO when handled correctly. I’d recommend checking HubSpot’s domain mapping options, URL redirects, and canonical tags before making the switch. Also, if you’re looking for something fun to explore, check out this love calculator name tool! :heart: