Main page in Cloudflare Pages

Hi! I made html files which I hosted in Cloudflare pages. However, I’m unable to find out how I set the main page. When I go to address.pages.dev, the browser says no webpage found. I need to add the file name to the address e.g. address.pages.dev/page. How can I set “login.html” as the main page, so when I type address.pages.dev, it will redirect to it?

Sorry if this text was unclear.

It’s worth taking a read of Routing · Cloudflare Pages docs and Serving Pages · Cloudflare Pages docs to understand how the routing works. I think if your page isn’t named index.html then you’d need to handle that in Javascript by defining your own behaviour for when the root page is accessed and serving login.html instead.

1 Like