>> Better to do this in an .htaccess file, so you don't incur PHP
>> processing overhead on the entire server (if there are others using
>> it).
>
>Apache suggests not using .htaccess files at all because they require a
>recursive traversing of directories looking for .htaccess files, because
>some supersede others or something like that.

The only way to eliminate the overhead of searching for .htaccess files is
to set the Allowoverride directive to 'None' in your httpd.conf file -
otherwise, they will be checked for on every request whether they exist or
not. The question is: does the additional benefit of using per-directory
configuration and selective .html-as-.php handling outweigh the speed gain
of not looking for .htaccess files? This depends on the server, how it's
used, and how important raw performance is vs. ease of use.

Just to quickly return to the original question, I would not use either
method - instead I would turn multiviews on, and not use file extensions
in URL's at all.

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

---------------------------------------------------------------------
michal migurski- contact info and pgp key:
sf/ca            http://mike.teczno.com/contact.html

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to