top | item 40439877

(no title)

carbonatom | 1 year ago

Does it have to /now exactly? Can it be /now.html?

I don't have any fancy tools or frameworks to create extension-less URLs. I just dump my HTMLs into a folder. So can /now.html work for this?

Edit: Wow! Why downvote me for an honest question? What's so revolting about this question that you feel the need to downvote this?

discuss

order

denzil|1 year ago

Usually having index.html in /now would behave as if the /now was the page. Other index.extension files (like index.php) might also work depending on the server configuration.

carbonatom|1 year ago

You mean like /now/index.html. Yeah, that could work! Thanks!

But "/now.html" feels "cleaner" to me. I know others might disagree.

If this now thing could support just "/now.html" or even "/now" redirecting to "/now.html", that would be swell! Maybe they already do support it? Hoping to learn from the community if these alternative paths are supported.

anentropic|1 year ago

You don't have to do any tricks with index.html or "fancy tools or frameworks to create extension-less URLs"

there's no reason your HTML files have to be named with .html at the end of the filename

carbonatom|1 year ago

> there's no reason your HTML files have to be named with .html at the end of the filename

How do you know that? Do you know how I use my computer? I need to browse the HTML files lying on my disk with my browser? My OS and browser does not open files that are not named .html on the disk as HTML pages on the browser. So I need them to be .html so that I can browse my pages on my laptop.