mod_negotiation and 406 and php

From: Date: Fri, 31 Jan 2003 23:22:20 +0000
Subject: mod_negotiation and 406 and php
Groups: php.dev 
Request: Send a blank email to php-dev+get-93884@lists.php.net to get a copy of this message
I'm using Apache mod_negotiation to eliminate file extensions from my site, e.g. http://tinyplanet.ca/services/development This works great for dynamic features too, as I get pathinfo for free. No more ?article_id=92 business for me. Anyway. Google hates my guts for doing this. Why? Well, it sends Accept: text/plain,text/html in its HTTP requests. This causes Apache to a) issue a 406 "no suitable content found" error, and b) not serve my content to google for indexing. Greaaat. If I feed such a request to Apache, it says: An appropriate representation of the requested resource /services/dev could not be found on this server. Available variants: <ul> <li><a href="dev.html">dev.html</a> , type application/x-httpd-php, language en ^^^^^^^^^^^^^^^^^^^^^^^ Which is, of course, correct. Of course, if I change the content-type of .html files, then PHP won't parse them. I'm at a bit of a loss to figure out how to fix this. Suggestions welcome.

« previous php.dev (#93884) next »