Shane McCarron wrote: > > Forgive me for chiming in late on this, but... While I agree with the > following: > >> "If no Accept header field is present, then it is assumed that the >> client accepts all media types." >> >> Since the validator sends no Accept header, it should be assumed that >> the client accepts all media types. If your rule assumes that it >> doesn't support XHTML because of that, then isn't that a flaw in the >> rule? > > That's fine. Is there a clever mod_rewrite rule we can suggest for > people that means "when you see no accept header, do *this* for *that* > type of request" ? I don't speak mod_rewrite that well. The following will rewrite everything (.*), you might want to scope the rewrite rule to (\.html) instead: RewriteCond %{HTTP_ACCEPT} ^$ RewriteRule .* - [T=application/xhtml+xml;charset=utf-8] - Sam RubyReceived on Tuesday, 24 April 2007 17:39:50 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 20 September 2007 14:26:37 GMT