Forum Moderators: phranque
This rule works as expected ie:
http://www.example.com/p-123456/some+product+name.htm
goes to:
http://www.example.com/index.php?pid=123456
until the string "some+product+name" contains the string "rsh".
For example the URL:
http://www.example.com/p-20371406/rsh1.htm
produces this result:
406 Not Acceptable
An appropriate representation of the requested resource /p-20371406/rsh1.htm could not be found on this server.
I believe this may also happen for the string "ssh", but definitely for "rsh" because Google Webmaster Tools has flagged this problem url. From tests, the "rsh" can appear anywhere in the string and still cause this problem.
I can't find any mention of this problem elsewhere. Does anyone know how to fix this?
Many thanks.
406 is a strange error to get too, since that implies a problem with the client (i.e. the browser being unable to accept the content provided) rather than something happening on the server. Is there anything interesting in the HTTP headers for the 'rsh' requests?
http://www.example.net/p-20371406/rsh1.htm
GET /p-20371406/rsh1.htm HTTP/1.1
Host: www.example.net
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-gb,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: #*$!=true; pass=#*$!; user=#*$!; PHPSESSID=#*$!
Cache-Control: max-age=0
HTTP/1.x 406 Not Acceptable
Date: Tue, 24 Jun 2008 08:12:07 GMT
Server: Apache
Keep-Alive: timeout=3, max=99
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
(I've replaced some sensitive information).
So, I'm not sure it's a 406 error in the true sense of the word. I'm wondering if it's as a result of mod_security or something like that.
[edited by: Receptional_Andy at 8:26 am (utc) on June 24, 2008]
I don't think my host would be willing to change their security just for me
It might be worth asking, since fixing it would not make the host less secure - it would just remedy a false positive.
Try adding
Options -MultiViews
Jim
[added] The content-type in the server response posted above indicates the content-type of the 406 error page, not that of the originally-requested file/page. So the fact that it was text/html and that text/html is an acceptable content-type for the browser does not really mean anything. [/added]
Thanks,
Jim
[edited by: jdMorgan at 3:32 pm (utc) on June 29, 2008]