Unwanted apache rewrite of file extensions

Asked by Paul H.

Hi there!

I have Apache installed and for some reason I do not need to write any file extensions to open a page. Examples:

I can open http://localhost/thispage.html
But this also opens this same page: http://localhost/thispage

This works for all extensions (html/html/php) I tried. However, I do not want this to happen!

I checked out the default config file 000-default, but there was nothing there that affects this. I removed all of the rewrite instructions (I do use Apache Rewrite for certain sites) and the behavior continued. Note that this affects ALL of the sites installed.

Anybody any idea??

Thanks!
Paul

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Paul H.
Solved:
Last query:
Last reply:
Revision history for this message
Paul H. (paulh-dehoekmannen) said :
#1

Issue has been solved!

I found this:

Multiviews

[...]

The effect of MultiViews is as follows: if the server receives a request for /some/dir/foo, if /some/dir has MultiViews enabled, and /some/dir/foo does not exist, then the server reads the directory looking for files named foo.*, and effectively fakes up a type map which names all those files, assigning them the same media types and content-encodings it would have if the client had asked for one of them by name. It then chooses the best match to the client's requirements.

http://httpd.apache.org/docs/2.2/content-negotiation.html#multiviews

Perhaps it can save some headaches to somebody else...!