The index.html file
index.html is your site’s front door. Understanding this one file prevents most upload headaches.
The rule
Section titled “The rule”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.htmlyour-address.trybailey.app/pricing → shows pricing/index.html (or pricing.html)The name has to be exact
Section titled “The name has to be exact”| File name | Does 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) |
At the top, not in a sub-folder
Section titled “At the top, not in a sub-folder”index.html must be right inside the folder you upload:
✅ Good ❌ Not goodmy-folder/ my-folder/├── index.html └── site/└── style.css ├── index.html └── style.cssIn the “not good” case, upload the site/ sub-folder instead (the one that actually holds index.html).
More than one page?
Section titled “More than one page?”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.