Am 21.10.2013 16:48, schrieb Kingsley Idehen:
> Can someone not change 302 to 303 re: RewriteRule ^/entity/(.*)$
> https://www.wikidata.org/wiki/Special:EntityData/$1 [R=302,QSA] ?


The thing is that we intended this to be an internal apache rewrite, not a HTTP
redirect at all. Because Special:EntityData itself implements the content
negotiation that triggers a 303 when appropriate.

So, currently we get a 302 from /entity/Q$1 to /wiki/Special:EntityData/$1 (the
generic document URI), which then applies content negotiation and sends a 303
pointing to e.g. /wiki/Special:EntityData/$1.ttl (the URL of a specific
serialization, e.g. in turtle).

What I want is to remove the initial 302 completely using an internal rewrite,
not replace it with another 303 - since I don't think that's semantically
correct. This did not work when tried, for reasons unknown to me. Someone
suggester that the wrong options where set for the rewrite rule, who knows.

Kingsley, do you think having two 303s (from /entity/Q$1 to
/wiki/Special:EntityData/$1 and another one to wiki/Special:EntityData/$1.xxx)
would be appropriate or at least better than what we have now?

-- daniel

_______________________________________________
Wikidata-l mailing list
Wikidata-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-l

Reply via email to