# Blog on subfolder in discourse

**URL:** https://meta.discourse.org/t/blog-on-subfolder-in-discourse/32883
**Category:** Self-hosting
**Created:** [3 Settembre 2015, 7:48pm UTC](https://meta.discourse.org/t/blog-on-subfolder-in-discourse/32883 "2015-09-03T19:48:42Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![michael\_solomon](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@michael\_solomon](https://meta.discourse.org/u/michael_solomon)
#### Post date: [3 Settembre 2015, 7:48pm UTC](https://meta.discourse.org/t/blog-on-subfolder-in-discourse/32883/1 "2015-09-03T19:48:42Z")

</div>

Hi,  
I have discourse at _[example.com](http://example.com)_ and want to host a blog at _[example.com/blog](http://example.com/blog)_.  
How can I do that?  
Thanks,  
Michael  
p.s: what you suggest from SEO point of view? subdomain or subfolder?

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [3 Settembre 2015, 7:52pm UTC](https://meta.discourse.org/t/blog-on-subfolder-in-discourse/32883/2 "2015-09-03T19:52:37Z")

</div>

I think the only way you could do this is by putting a reverse proxy such as nginx or apache httpd in front of discourse, then passing everything at /blog to another application, and everything else to Discourse.

I would not recommend it if you can avoid it. You can already use a discourse category as a blog, restricting who can post and who can add comments.

---

<div class="post-metadata">

### Author: ![michael\_solomon](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@michael\_solomon](https://meta.discourse.org/u/michael_solomon)
#### Post date: [3 Settembre 2015, 7:53pm UTC](https://meta.discourse.org/t/blog-on-subfolder-in-discourse/32883/3 "2015-09-03T19:53:23Z")

</div>

> [@downey](#):
>
> I would not recommend it if you can avoid it.

so what you are suggest me to do?

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [3 Settembre 2015, 7:54pm UTC](https://meta.discourse.org/t/blog-on-subfolder-in-discourse/32883/4 "2015-09-03T19:54:55Z")

</div>

My recommendation:

1. If you only want a blog to post articles and solicit comments, just use Discourse.
2. If you want to use a blog platform such as WordPress as a CMS for a “web site”, then put it at your domain root [https://example.com/](https://example.com/) and move Discourse to [https://forum.example.com/](https://forum.example.com/)

---

<div class="post-metadata">

### Author: ![michael\_solomon](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@michael\_solomon](https://meta.discourse.org/u/michael_solomon)
#### Post date: [3 Settembre 2015, 7:59pm UTC](https://meta.discourse.org/t/blog-on-subfolder-in-discourse/32883/5 "2015-09-03T19:59:28Z")

</div>

> [@downey](#):
>
> Discourse to [https://forum.example.com/](https://forum.example.com/)

But I read that bad for SEO( two seperate sites for google..)

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [3 Settembre 2015, 8:03pm UTC](https://meta.discourse.org/t/blog-on-subfolder-in-discourse/32883/6 "2015-09-03T20:03:56Z")

</div>

I don’t believe in SEO. 😄

---

<div class="post-metadata">

### Author: ![michael\_solomon](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@michael\_solomon](https://meta.discourse.org/u/michael_solomon)
#### Post date: [3 Settembre 2015, 8:52pm UTC](https://meta.discourse.org/t/blog-on-subfolder-in-discourse/32883/7 "2015-09-03T20:52:15Z")

</div>

Lol but google believe… 😄

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [3 Settembre 2015, 8:54pm UTC](https://meta.discourse.org/t/blog-on-subfolder-in-discourse/32883/8 "2015-09-03T20:54:24Z")

</div>

> [@michael\_solomon](#):
>
> Lol but google believe…

Are you sure?

> **[Subdomains and subdirectories](https://www.mattcutts.com/blog/subdomains-and-subdirectories/)**
>
> Towards the tail end of PubCon, I noticed a spate of articles talking about subdomains and subdirectories in Google, and I wanted to talk more about this subject in case I was unclear. Historically…

---

<div class="post-metadata">

### Author: ![michael\_solomon](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@michael\_solomon](https://meta.discourse.org/u/michael_solomon)
#### Post date: [3 Settembre 2015, 9:26pm UTC](https://meta.discourse.org/t/blog-on-subfolder-in-discourse/32883/9 "2015-09-03T21:26:47Z")

</div>

Yep.. this article very deprecated.. things changed little bit:  
[http://mainpath.com/putting-end-to-subdomains-vs-subdirectories-debate/](http://mainpath.com/putting-end-to-subdomains-vs-subdirectories-debate/)

> Remember that Google considers sub domains separate from their parent domains: [sub.yoursite.com](http://sub.yoursite.com) is considered a different site altogether compared to [yoursite.com](http://yoursite.com) when it comes to search engine authority.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [3 Settembre 2015, 9:51pm UTC](https://meta.discourse.org/t/blog-on-subfolder-in-discourse/32883/10 "2015-09-03T21:51:30Z")

</div>

Here is a response from Matt Cutts in email to me:

> pretty much everyone who has strong opinions on subdomains vs. subfolders doesn’t know what they’re talking about. They sure do have strong opinions anyway though!

Sorry, I believe Matt Cutts of Google over your random link 😉

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [3 Settembre 2015, 9:53pm UTC](https://meta.discourse.org/t/blog-on-subfolder-in-discourse/32883/11 "2015-09-03T21:53:22Z")

</div>

> [@michael\_solomon](#):
>
> Yep.. this article very deprecated

OK, here’s a newer (2012) video:

[![](https://global.discourse-cdn.com/meta/original/4X/b/f/6/bf6632bb51db556c0806f88d0c4dbcb28f9aefa7.jpeg "Should I structure my site using subdomains or subdirectories?") ](https://www.youtube.com/watch?v=_MswMYk05tk)

Nothing has changed. 😄

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [3 Settembre 2015, 9:53pm UTC](https://meta.discourse.org/t/blog-on-subfolder-in-discourse/32883/12 "2015-09-03T21:53:22Z")

</div>

If you insist on doing this, I recommend you deploy Discourse to a subfolder first ([www.example.com/forum](http://www.example.com/forum)), and then you can deploy other apps (like your blog) to other subfolders.

> [@Use a subfolder (path prefix) to serve Discourse with multiple servers sharing a domain](https://meta.discourse.org/t/discourse-in-a-subfolder-sharing-a-domain/30514):
>
> Let’s say you have a WordPress blog on http://=DOMAIN=, and you want to serve your Discourse forums (which run on a different server) from http://=DOMAIN==PATH=. How do you do that? Note: This won’t work for serving multiple Discourse instances from different folders on the same domain. You need to use different subdomains so that each site can have different cookies. You’re going to need to send all traffic for the domain to one place that can route traffic to the correct server. In thi…

---

<div class="post-metadata">

### Author: ![michael\_solomon](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@michael\_solomon](https://meta.discourse.org/u/michael_solomon)
#### Post date: [3 Settembre 2015, 9:59pm UTC](https://meta.discourse.org/t/blog-on-subfolder-in-discourse/32883/13 "2015-09-03T21:59:59Z")

</div>

Thanks guys, I’ll just put the blog on subdomain.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [3 Novembre 2018, 11:26pm UTC](https://meta.discourse.org/t/blog-on-subfolder-in-discourse/32883/14 "2018-11-03T23:26:41Z")

</div>



---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [10 Agosto 2021, 8:05pm UTC](https://meta.discourse.org/t/blog-on-subfolder-in-discourse/32883/15 "2021-08-10T20:05:02Z")

</div>



---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [28 Agosto 2023, 11:25am UTC](https://meta.discourse.org/t/blog-on-subfolder-in-discourse/32883/16 "2023-08-28T11:25:34Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
