Can ghost be installed in a subdirectory of a primary websites root directory, as described below, and how do I use a separate admin URL?

Hi,

If I export a Ghost site to JSON, delete Ghost and then install it again on another domain, will I be able to import the JSON fie and have all of my posts and users back again without any issue?

Also, can I install Ghost into a subdirectory of a websites root directory.

For example, if my websites root directory looks like this:

mythbound.online
|---- index.html
|---- assets
         |---- img
         |---- vid
         |---- css
         |---- js
|---- chat

Can I install Ghost like into a blog subdirectory, like this:


mythbound.online
|---- index.html
|---- assets
         |---- img
         |---- vid
         |---- css
         |---- js
|---- chat (forwards to discord)
|---- blog (ghost)

Then, set the URL for ghost to be mythbound.online/blog. So when someone goes to mythbound.online/blog they get the get access to the blog (which is the Ghost site), but they don’t need to remember any subdomains or anything like that, and everything stays within the same domain structure, so that posts have URLs like:

mythbound.online/blog/post-title


Admin URL

I would also want to use a subdomain for the backend access, such as dash.mythbound.online, so that I could have guest authors submit articles for publication.

I would also like to have mythbound.online/dash auto redirect to the admin URL.


Is that possible?

Thanks

Edited post

I have the same question, did you figure it out?

Ah I think I’ve found it

No, to fully migrate a Ghost site you need a bit more than just the JSON. If you’re self-hosting, the easiest would be to copy your content folder and reuse the same database/back up and restore the database:

Again, assuming you are self-hosting, you can set this in your web server settings (likely nginx). The redirects could also work, but I’m not at my work station to test that right now:

The link you posted refers to the entire Ghost site to be installed in a subdirectory, specifically on Ghost(Pro). So, not entirely the same as OP’s question.