| Thread overview | |||||
|---|---|---|---|---|---|
|
January 16, 2015 html files without the .html extension | ||||
|---|---|---|---|---|
| ||||
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 Re: html files without the .html extension | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | 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 Re: html files without the .html extension | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Vladimir Panteleev | 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).
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply