# Host HTML page on Discourse install

**URL:** https://meta.discourse.org/t/host-html-page-on-discourse-install/235186
**Category:** Self-hosting
**Created:** [August 5, 2022, 4:26am UTC](https://meta.discourse.org/t/host-html-page-on-discourse-install/235186 "2022-08-05T04:26:14Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![riteshsaini](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riteshsaini/32/266453_2.png) [@riteshsaini](https://meta.discourse.org/u/riteshsaini)
#### Post date: [August 5, 2022, 4:26am UTC](https://meta.discourse.org/t/host-html-page-on-discourse-install/235186/1 "2022-08-05T04:26:14Z")

</div>

Hi,

As mentioned in my previous posts, I migrated my WordPress blog to Discourse.

There was an HTML page on my site that was hosted inside a folder in `public_html`

So, its URL was `example.com/foldername`

Now, I want to host the same folder/page again, but with Discourse.

Where should I put this folder so that I get the same URL structure without breaking my Discourse site?

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [August 5, 2022, 7:37am UTC](https://meta.discourse.org/t/host-html-page-on-discourse-install/235186/2 "2022-08-05T07:37:31Z")

</div>

That’s tricky, because Ember/Rails would try to interpret that as an app route … which doesn’t exist.

I would step back if I were you and reconsider what you are ultimately, _functionally_ trying to achieve and see if there isn’t another way to go about it?

One option is to use this:

> [@Page Publishing](https://meta.discourse.org/t/page-publishing/151971):
>
> bookmark This guide covers how to use the Page Publishing feature on Discourse. This feature allows Staff users to convert a topic into a standalone static page with custom styling. Examples include the Terms of Service and Privacy Policy pages. person_raising_hand Required user level: Staff Publishing static pages on Discourse Page Publishing allows Staff users to create standalone static pages from topics. This is similar to the process for creating Terms of Service or Privacy Policy …

Another option might be to host that page on a sub-domain, rather than a folder (and all that entails).

---

<div class="post-metadata">

### Author: ![riteshsaini](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riteshsaini/32/266453_2.png) [@riteshsaini](https://meta.discourse.org/u/riteshsaini)
#### Post date: [August 5, 2022, 7:59am UTC](https://meta.discourse.org/t/host-html-page-on-discourse-install/235186/3 "2022-08-05T07:59:34Z")

</div>

Thanks @merefield for your response.

Page publishing and subdomain won’t work. The only option other than hosting in the folder is hosting the folder on a new domain, which won’t be good for SEO as I won’t have all the authority of my actual domain.

Is there any way to fulfill my purpose using a plugin?

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [August 5, 2022, 8:03am UTC](https://meta.discourse.org/t/host-html-page-on-discourse-install/235186/4 "2022-08-05T08:03:02Z")

</div>

Well you can create a new route in a plugin and put whatever you want on it.

But a simple version of that will still run “inside” Discourse.

Take a look at my Word Cloud or Community Network plugin code to see how that is done.

---

<div class="post-metadata">

### Author: ![riteshsaini](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riteshsaini/32/266453_2.png) [@riteshsaini](https://meta.discourse.org/u/riteshsaini)
#### Post date: [August 5, 2022, 8:11am UTC](https://meta.discourse.org/t/host-html-page-on-discourse-install/235186/5 "2022-08-05T08:11:39Z")

</div>

Okay, I will. Thank you

---

<div class="post-metadata">

### Author: ![michaeld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michaeld/32/1594_2.png) [@michaeld](https://meta.discourse.org/u/michaeld)
#### Post date: [August 5, 2022, 9:49am UTC](https://meta.discourse.org/t/host-html-page-on-discourse-install/235186/6 "2022-08-05T09:49:51Z")

</div>

You could also host it elsewhere and use a Cloudflare workers route to make it look like a folder within your forum.

---

<div class="post-metadata">

### Author: ![riteshsaini](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riteshsaini/32/266453_2.png) [@riteshsaini](https://meta.discourse.org/u/riteshsaini)
#### Post date: [August 5, 2022, 10:21am UTC](https://meta.discourse.org/t/host-html-page-on-discourse-install/235186/7 "2022-08-05T10:21:53Z")

</div>

I don’t know how to do that. Is there any guide for it? Please share 🙂

---

<div class="post-metadata">

### Author: ![michaeld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michaeld/32/1594_2.png) [@michaeld](https://meta.discourse.org/u/michaeld)
#### Post date: [August 5, 2022, 10:35am UTC](https://meta.discourse.org/t/host-html-page-on-discourse-install/235186/8 "2022-08-05T10:35:19Z")

</div>

Google is your friend…!

> **[Host Product Blog in Subdirectory Instead of Subdomain](https://www.codiva.io/blog/post/host-saas-product-blog-in-subdirectory-instead-of-subdomain/)**

---

<div class="post-metadata">

### Author: ![lowkey\_324](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lowkey_324/32/320736_2.png) [@lowkey\_324](https://meta.discourse.org/u/lowkey_324)
#### Post date: [August 14, 2023, 6:00pm UTC](https://meta.discourse.org/t/host-html-page-on-discourse-install/235186/9 "2023-08-14T18:00:42Z")

</div>

Did you have any luck with this?

---

<div class="post-metadata">

### Author: ![denvergeeks](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/denvergeeks/32/327671_2.png) [@denvergeeks](https://meta.discourse.org/u/denvergeeks)
#### Post date: [August 18, 2023, 6:27am UTC](https://meta.discourse.org/t/host-html-page-on-discourse-install/235186/10 "2023-08-18T06:27:40Z")

</div>

@lowkey_324 what is it (specifically) that you want to accomplish?
