Thread overview
html files without the .html extension
Jan 16, 2015
Vladimir Panteleev
Jan 16, 2015
Vladimir Panteleev
January 16, 2015
To my surprise I saw that all pages linked from http://dlang.org/spec.html do NOT have an .html extension, see e.g.

http://dlang.org/intro

which Just Works(tm). However, it doesn't work when I test the site locally or upload it for testing on my own website.

Do we have some automatic extensionless to .html name conversion going on dlang.org that I've been missing?


Thanks,

Andrei
January 16, 2015
On Friday, 16 January 2015 at 20:42:53 UTC, Andrei Alexandrescu wrote:
> To my surprise I saw that all pages linked from http://dlang.org/spec.html do NOT have an .html extension, see e.g.
>
> http://dlang.org/intro
>
> which Just Works(tm). However, it doesn't work when I test the site locally or upload it for testing on my own website.
>
> Do we have some automatic extensionless to .html name conversion going on dlang.org that I've been missing?

It's probably Apache MultiViews. To disable it, you can add to .htaccess:

Options -MultiViews
January 16, 2015
On Friday, 16 January 2015 at 20:44:11 UTC, Vladimir Panteleev wrote:
> To disable it, you can add to .htaccess:

Not that this would be a good idea at this point, as it'd break existing links. But we can also add a redirect from extensionless to .html (or vice versa).