2 ms·
Isn't this something you can just configure at the server level, so you don't need to have your files be extensionless? I could swear I've done that before in a
by joemi 3y ago
Isn't this something you can just configure at the server level, so you don't need to have your files be extensionless? I could swear I've done that before in apache.
- Karellen 3y ago> Isn't this something you can just configure at the server level Oh, yeah. I mean, you have to configure the server to treat extensionless files as html/cgi/php/whatever anyway, so you could just have it load extensionless URLs from .html/.cgi/.php files, but I prefer to keep my server config as "surprise-free" as possible. If `/article/foo` is served from the file `$DOCUMENT_ROOT/article/foo` on the filesystem, I find that less confusing for everyone than if it's served from `$DOCUMENT_ROOT/article/foo.php`. It's a matter of personal preference, for sure. Just like `.htm` over `.html`. (Or `.jpg` over `.jpeg` for that matter.) I wouldn't say the way I do it is "right", but it's a trade-off that works for me.