Static Website Hosting
I really like the low footprint and utility of Static Websites. This website is built using
In this post I will talk about some issues I faced with deploying a second static website and how I eventually solved it.
I have long enjoyed the awesomeness of
User Github Pages and am quite happy with it.
However as soon as I tried to create a second independent static website with custom domain,
Github was having nothing of it.
After spending lot of time scouring the web for how to make it work between
Namecheap, my DNS provider, I had nothing to show for it.
Finally got around to having a look at
Netlify and I must say it works great!
It took me a while to understand how to deploy a simple HTML page as I am used to working with tools like
Artisanal Static Website
In case you want to handroll a static website with pure HTML pages, then here's the trick.
If you want
Clent/Pretty URLS then for each pages you need to have it in a separate sub-directory along with an
Let's look at an example:
In case you want to have a site with following URLs:
Then you need to arrange your HTML pages in following order.
root ├── index.html ├── first │ └── index.html ├── second │ └── index.html └── with-children ├── index.html ├── nested1 │ └── index.html └── nested2 └── index.html
root will point to
My New Site
You might be wondering what is this new site I have been playing around with.
I am working on this as a fun experiment and I intend to write in greater detail about it soon.