Apache: How to remove file extensions from URLs?

I want enable my Apache server to respond to URLs with no filename extension. eg, I want the following URLs to do the same thing:

http://myserver.mydomain.com/test
http://myserver.mydomain.com/test.php

This concept is discussed here...

http://www.w3.org/Provider/Style/URI.html.en#remove

...(although it doensn't mention my motivation for doing it), and here:

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

...but no one provides any simple code (that I can tell??) to do it!

The defaul comments in my httpd.conf that come from Apache suggest that "type-var is faster then Multiviews." I haven't deciphered all this yet...not sure that I want to. I just want to be able to perform the scenario in my first example above.

Help, suggestions, pointers?

-Matt

 

 

 

 

Top