You’re right, it is accessible but just wondered if there is a way to automatically redirect if there’s a .html in the end of the URL. After all, you’re right, it works like that and I can access everything without .html. But would be even cooler if it’s just not possible to open .html files without a redirect. I thought that is what Asset optimization > Pretty URLs is doing?
Hey @luisrieke , I took a look at your site and it does look like the Pretty URLs are working as expected. What I tried was going to your main/home page here [https://luisrieke.com/] and then I clicked on the “running” link, and the URL showed as Luis Rieke - running – is this what you’re expecting?
If you are seeing a specific page or link which is not working as you expect, can you share the URL for that page so we can investigate further?
I believe part of the confusion here is whether or not the ‘Asset optimization - Pretty URLs’ is supposed to apply any redirection of a users request for a file.
My understanding, based on the description written under it, is that it scans and changes your HTML to remove references to URLs ending in .html, so if you had a link of href="/about.html", it would adjust your code to href="/about".
What @luisrieke is questioning is that if a user is directly accessing a file with the .html extension in the URL, a file which does exist, is it possible to redirect them to the Pretty URL for that same file.