Skip to content

The index.html file

index.html is your site’s front door. Understanding this one file prevents most upload headaches.

When a visitor lands on your address without naming a specific page, Bailey looks for a file called exactly index.html at the top of your folder and shows it. This is a universal web convention, not a Bailey quirk.

your-address.trybailey.app → shows index.html
your-address.trybailey.app/pricing → shows pricing/index.html (or pricing.html)
File nameDoes it work?
index.html✅ Yes
Index.html❌ No (capital letter)
index.htm❌ No (wrong ending)
home.html❌ No (different name)
index.html.txt❌ No (the real ending is .txt)

index.html must be right inside the folder you upload:

✅ Good ❌ Not good
my-folder/ my-folder/
├── index.html └── site/
└── style.css ├── index.html
└── style.css

In the “not good” case, upload the site/ sub-folder instead (the one that actually holds index.html).

Each sub-folder can have its own index.html, which becomes that sub-folder’s address. contact/index.html will be served at your-address/contact. Most tools handle this for you automatically.

Hosted on Bailey