# Subfolder vs. Subdomain

**URL:** <https://community.hubspot.com/t/subfolder-vs-subdomain/531>\
**Category:** Blog, Website & Page Publishing\
**Tags:** content\
**Created:** [December 6, 2016, 8:27pm UTC](https://community.hubspot.com/t/subfolder-vs-subdomain/531 "2016-12-06T20:27:35Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![creativedesign](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/creativedesign/32/18373_2.png) [@creativedesign](https://community.hubspot.com/u/creativedesign)\
**Post date:** [June 5, 2020, 2:37pm UTC](https://community.hubspot.com/t/subfolder-vs-subdomain/531/21 "2020-06-05T14:37:08Z")

</div>

Hey ! I’m wondering same, if my main website for my **[web design dubai](https://www.creativedesignuae.com/)** is hosted here, can I have a blog on a subdirectory instead of a subdomain?

---

<div class="post-metadata">

**Author:** ![David\_Alb](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@David\_Alb](https://community.hubspot.com/u/David_Alb)\
**Post date:** [January 18, 2023, 10:03am UTC](https://community.hubspot.com/t/subfolder-vs-subdomain/531/22 "2023-01-18T10:03:05Z")

</div>

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](http://example.com)”), then I believe you can easily configure Hubspot to have your blog in a folder of the website domain (“[example.com/blog](http://example.com/blog)”).

But, if you are **hosting your website outside Hubspot** (“[example.com](http://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](http://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](http://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](https://consulting.hubspot.com/hubfs/Solutions%20Repo/Reverse%20Proxy%20Guide/HubSpot%20&%20AWS%20Cloudfront%20Reverse%20Proxy%20Tutorial.pdf) (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](https://developers.hubspot.com/docs/cms/developer-reference/reverse-proxy-support#configuring-a-reverse-proxy-or-cdn-with-your-hubspot-account)

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](http://example.com)” to the hosting you need, and “[example.com/blog](http://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)

---

<div class="post-metadata">

**Author:** ![DianaGomez](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dianagomez/32/48035_2.png) [@DianaGomez](https://community.hubspot.com/u/DianaGomez)\
**Post date:** [January 18, 2023, 11:06pm UTC](https://community.hubspot.com/t/subfolder-vs-subdomain/531/23 "2023-01-18T23:06:38Z")

</div>

Hi [@David\_Alb](https://community.hubspot.com/t5/user/viewprofilepage/user-id/506305), hope you are doing well!

¡Thanks for sharing!

Best,

Diana

---

<div class="post-metadata">

**Author:** ![CGibbens](https://avatars.discourse-cdn.com/v4/letter/c/c4cdca/32.png) [@CGibbens](https://community.hubspot.com/u/CGibbens)\
**Post date:** [June 1, 2023, 11:56am UTC](https://community.hubspot.com/t/subfolder-vs-subdomain/531/24 "2023-06-01T11:56:28Z")

</div>

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](https://pestbye.ca/).

---

<div class="post-metadata">

**Author:** ![CGibbens](https://avatars.discourse-cdn.com/v4/letter/c/c4cdca/32.png) [@CGibbens](https://community.hubspot.com/u/CGibbens)\
**Post date:** [June 1, 2023, 12:23pm UTC](https://community.hubspot.com/t/subfolder-vs-subdomain/531/25 "2023-06-01T12:23:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![alivia](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/alivia/32/2679_2.png) [@alivia](https://community.hubspot.com/u/alivia)\
**Post date:** [December 10, 2024, 3:50pm UTC](https://community.hubspot.com/t/subfolder-vs-subdomain/531/26 "2024-12-10T15:50:04Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![BPeterson199](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bpeterson199/32/213630_2.png) [@BPeterson199](https://community.hubspot.com/u/BPeterson199)\
**Post date:** [October 14, 2026, 5:22pm UTC](https://community.hubspot.com/t/subfolder-vs-subdomain/531/27 "2026-10-14T17:22:50Z")

</div>

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](https://thelovecalculatorr.com/) tool! ❤

[Previous page](https://community.hubspot.com/t/subfolder-vs-subdomain/531.md?page=1)
