www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - html files without the .html extension

reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
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
Jan 16 2015
parent reply "Vladimir Panteleev" <vladimir thecybershadow.net> writes:
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
Jan 16 2015
parent "Vladimir Panteleev" <vladimir thecybershadow.net> writes:
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).
Jan 16 2015