On 09 Apr 14:24, Chris G wrote:
Well I've found out how to turn this behaviour on and off but I'm none the wiser as to why it happens. The page above:-
http://home.isbd.net/manual/en/mod/core.html
Is (of course) one of the apache documentation manual pages. There's a file in /etc/apache2/conf.d to set configuration for this, as follows:-
Alias /manual /usr/share/doc/apache2-doc/manual/ <Directory "/usr/share/doc/apache2-doc/manual/"> Options Indexes FollowSymlinks AllowOverride None Order allow,deny Allow from all AddDefaultCharset off </Directory>
If I remove the Options line and restart apache then the URL without the .html on the end works. Putting *any* Options line back stops the URL without the trailing .html from working. Even adding "Options All" which is supposed to be the default switches the behaviour.
I'm still confused! :-)
I actually started looking at this because I want to do some playing about with filters with filter actions being changed by file suffixes and need to understand what's going on above (and what drives it).
The Option you are seeking is MultiViews. The default apache config has it turned on, it's being overridden when you use any Option line that down't include MultiViews.
Thanks,