severity 271856 normal retitle 271856 MultiViews makes PHP pages inaccessible by Googlebot [config patch] tags patch thanks
See <http://tranchant.plus.com/notes/multiviews> for a good discussion of the problem. The fix suggested by the OP is correct. This fix is also _officially_recommended_ by upstream: http://www.php.net/manual/en/faq.installation.php#faq.installation.apache.multiviews The only reason why upstream do not include this configuration by default is that they want their Apache config to work with all versions of Apache, but the fix only works for Apache 2. Please include the fix in the libapache2-mod-php4 package! I do believe this is a real bug, so please bear with me if I raise the severity to normal. It is not obvious at all that if a file called "foo.html.php" is linked to as "foo.html" on your website, then the default Debian Apache configuration will make that page inaccessible for Google. The default configuration should avoid that pitfall! Consider shipping the following as the content of /etc/apache2/mods-available/php4.conf: # We use "AddHandler" to map ".php" to mod_php. Using # "AddType application/x-httpd-php php" would make your pages inaccessible # for Googlebot if you use MultiViews, e.g. if you omit the ".php" # extension in links to your web pages. For details, see: # http://tranchant.plus.com/notes/multiviews # http://www.php.net/manual/en/faq.installation.php#faq.installation.apache.multiviews <IfModule mod_php4.c> AddType text/html php phtml php3 php4 AddHandler php-script php phtml php3 php4 AddType application/x-httpd-php-source .phps </IfModule> As for negative side-effects of this configuration, I do not believe there are any. mod_php is called both for "php-script" and "application/x-httpd-php" in the same way. The only thing that's different is that the mapping ".php"->"call mod_php" is not made indirectly by assigning an (otherwise completely meaningless!) MIME type to the .php extension. Cheers, Richard -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]