Deploying to subdirectory

Is there anyway to deploy to sub-directory in netlify?
For Eg. I want to deploy to https://example.com/blog

I couldn’t find any way to do it.

1 Like

hi there, welcome, did you take a look at the build settings already?

I think you should be able to achieve what you are looking for by setting up the correct subdirectory for your project. more here:

https://docs.netlify.com/configure-builds/get-started/

Hi @perry,

How will I build both the main site and the blog subdirectory?

Thanks

hi @eowyn, are the files for each in the same git repo, or different ones?

Thanks for replying, @perry. Different ones. I’m thinking of deploying a Webflow site (main) and a Jekyll site (/blog).

Ah, then this is the workflow you’ll need:

Let me know if that leads to any follow-up questions, but it is pretty step-by-step for exactly this config :slight_smile:

It looks like we don’t even need to own the other website to be able to do that. What stops people from using proxy redirects to pretend someone else’s content is their own?

Certain sites will always redirect to their own URL. Try proxying to google.com and you will see that the page will redirect to google.com because they planned for this.

1 Like