# Creating subdirectory for non-ghost content

**URL:** <https://forum.ghost.org/t/creating-subdirectory-for-non-ghost-content/45390>\
**Category:** Routing\
**Created:** [March 1, 2024, 3:12pm UTC](https://forum.ghost.org/t/creating-subdirectory-for-non-ghost-content/45390 "2024-03-01T15:12:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vouchey](https://avatars.discourse-cdn.com/v4/letter/v/76d3ee/32.png) [@vouchey](https://forum.ghost.org/u/vouchey)\
**Post date:** [March 1, 2024, 3:12pm UTC](https://forum.ghost.org/t/creating-subdirectory-for-non-ghost-content/45390/1 "2024-03-01T15:12:36Z")

</div>

I’d like to create a subdirectory like [https://ghostsite.tld/wordpress](https://ghostsite.tld/wordpress)

I created /var/www/wordpress/index.html and got a 404 error when I visited the page.

I’d like to host this on a subdirectory so I can maintain my SEO.

I’ve looked for directions, but found nothing. I’d think this is a fairly common need. What are the steps do to this?

---

<div class="post-metadata">

**Author:** ![roseash](https://avatars.discourse-cdn.com/v4/letter/r/258eb7/32.png) [@roseash](https://forum.ghost.org/u/roseash)\
**Post date:** [March 2, 2024, 8:59pm UTC](https://forum.ghost.org/t/creating-subdirectory-for-non-ghost-content/45390/2 "2024-03-02T20:59:43Z")

</div>

If you have ghost behind a reverse proxy such as nginx then you can set up routes in nginx so [https://ghostsite.tld/wordpress](https://ghostsite.tld/wordpress) goes to your static site (or maybe some other web application) and [https://ghostsite.tld/](https://ghostsite.tld/)\*\* goes to the ghost application. A good way to do this is to run nginx and ghost as services in a docker stack (maybe also using letsencrypt to sort your certificates) - this is a good reference - although look into nginx docs about how to create your wordpress route [GitHub - gregbkr/ghost-nginx-ssl-docker: Ghost blog with nginx proxy, lets encrypt ssl in a docker-compose (ready for production)](https://github.com/gregbkr/ghost-nginx-ssl-docker)

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [March 2, 2024, 9:07pm UTC](https://forum.ghost.org/t/creating-subdirectory-for-non-ghost-content/45390/3 "2024-03-02T21:07:25Z")

</div>

You recently posted this question.

> [@How create another subdirectory where ghost is already installed](https://forum.ghost.org/t/how-create-another-subdirectory-where-ghost-is-already-installed/30354/11):
>
> I gotta say, this one is mystifying me too. I’d like to create a subdirectory to run wordpress (it has handy plugins ghost does not) thus: [https://ghostblog.tld/wordpress](https://ghostblog.tld/wordpress) The Nginx tutorial you referenced above is not clear, nor can I find any ghost documentation on how to create a subdirectory that can operate independent of ghost. Thanks for the help.
