When creating a page in my website, I noticed that each page is part of the URL path + the filename. So if the Page “Goals” is created and the filename is goals.html, I get https://mywebsite/goals/goals.html which seems redundant… How can I make my page at the root of the website?
Page name should always be index.html (php if required)
2 Likes
The home page is the only root level page.
2 Likes
What you want to do is ensure the page filename inside all folders is “index.html”, that way you get clean URLs.
Change this:
https://mywebsite/goals/goals.html
to this:
https://mywebsite/goals/index.html
Then in the browser the URL will be clean and look like this: https://mywebsite/goals/
Hope that makes sense!
It does, thanks!
1 Like