Menu

1 / 12

How to host a Git repository on a subdomain with Netlify

We’ve moved to freeCodeCamp.org/news - Medium·Glyn Lewington·8 months ago
#zl4X0sDJ
Long article (514 words) — no AI summary yet.
Reading 0:00
15s threshold

TechnologyTechNetlifyProgrammingWeb Hosting How to host a Git repository on a subdomain with Netlify

Glyn Lewington

2 min readMay 23, 2019

Let’s say you have your portfolio, like www.glynlewington.com , hosted on Netlify and want to add your projects onto the same domain. They are all separate git repositories and Netlify is made for hosting from a single repository…but don’t fear! We can host them on subdomains like project.glynlewington.com with just a little work.

Press enter or click to view image in full size Photo by Nicole Y-C on Unsplash

Netlify makes it super easy to host your static sites with them for free. I recently moved my portfolio from a VPS over to them, and it’s great that they automatically update your site every time you push to your git repository.

In the past, I had all my personal projects also hosted on subdirectories, e.g. www.glynlewington.com/project . This is either difficult or impossible with Netlify.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.