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:

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:

1 Like

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

Hi @perry , I see your link to Build configuration overview | Netlify Docs, but I don’t see “Build & Deploy” it in my admin panel.

Am I missing something, or does this require some subscription?

FYI, this is what I see under my “Team Settings”

You’re checking in team settings - the required settings will be available under site settings.