Render files into /page.html instead of /page/index.html

With a file like this in hugo/content/page/page.md:

---
title = "title"
description = "description"
---

content here

Everytime I render a particular page it renders like this:
localhost:1313/page/index.html

I want it to ALWAYS render like this, and be able to use my partials and variables in my template:
localhost:1313/page.html

What is the best way to do this? I looked into the docs and could not found a simple way. Would appreciate some help. Thank you.

I believe you want to activate Ugly URLs

1 Like

Yes but how do I make it render to URL root / instead of the folder name?