PDA

View Full Version : Serving pages without file extension [apache]


scaryfast
11-13-2004, 11:01 PM
Hey,

My webhosts recently migrated, and in doing so, turned off the apache multiviews option that allows apache to serve documents where the file extension is not included in the url.

I like being able to do this as it keeps my url's sleek and cruft free, and helps to hide my implementation details from browsers.

Now, can anyone tell me how to acheive the same result using the .htaccess file?

Thanks! :)

eak
11-14-2004, 01:38 AM
i dont know what language your using but this will do for php.
you can do it for others too.

<Files filewithoutExtension>
ForceType application/x-httpd-php
</Files>