[foaf-dev] Foaf HTML specification inaccessible if one has rdf in Accept headers
Nicholas J Humfrey
njh at aelius.com
Tue Dec 1 10:42:43 CET 2009
This is a fairly common problem that often relates to the limitations
of mod_rewrite and not being able to deal with Accept header priorities.
The W3C recommend using mod_rewrite:
But there must be a better solution (without using a scripting
language like PHP?) Perhaps a new Apache module or mod_rewrite patch/
On 30 Nov 2009, at 22:46, Peter Ansell <ansell.peter at gmail.com> wrote:
> Hi all,
> I had application/rdf+xml in my header file and the foaf website
> redirected my request for http://xmlns.com/foaf/spec/index.html to
> http://xmlns.com/foaf/spec/ (which returns RDF).
> Is it possible to change this behaviour, and add a link back from the
> RDF version to the HTML version for people like me who like direct
> links to HTML documents with more information in them even if they can
> assimilate bare RDF/XML to some degree.
> When I take out the application/rdf+xml from my Accept headers
> http://xmlns.com/foaf/spec/index.html and
> http://xmlns.com/foaf/spec/index.rdf do the right things, so it is
> only a bug with the content negotiation part. When the CN behaviour is
> fixed, a link back from the RDF document to the HTML document would be
> nice, in a similar way as the link in the HTML document shows people
> how they can always get the RDF document.
> foaf-dev mailing list
> foaf-dev at lists.foaf-project.org
More information about the foaf-dev