Last modified: 2011-03-13 18:06:39 UTC
Would it make sense for the server to return http status code 301 when transcluding a template like http://meta.wikimedia.org/wiki/Template:MovedToMediaWiki ? Example: http://meta.wikimedia.org/wiki/How_to_become_a_MediaWiki_hacker Current headers via `curl -D http://meta.wikimedia.org/wiki/How_to_become_a_MediaWiki_hacker`: HTTP/1.0 200 OK Date: Mon, 12 Nov 2007 00:14:15 GMT Server: Apache X-Powered-By: PHP/5.2.1 Content-Language: en Vary: Accept-Encoding,Cookie Cache-Control: private, s-maxage=0, max-age=0, must-revalidate Last-Modified: Thu, 25 Oct 2007 18:02:22 GMT Content-Length: 12804 Content-Type: text/html; charset=utf-8 X-Cache: MISS from sq36.wikimedia.org X-Cache-Lookup: HIT from sq36.wikimedia.org:3128 X-Cache: MISS from sq36.wikimedia.org X-Cache-Lookup: MISS from sq36.wikimedia.org:80 Via: 1.0 sq36.wikimedia.org:3128 (squid/2.6.STABLE13), 1.0 sq36.wikimedia.org:80 (squid/2.6.STABLE13)
Note that the real URL that's being requested is /w/index.php?title=Name_of_moved_page and that's also what people see for wikis that don't use short URLs. A 301 would (AFAIK) be interpreted as "index.php has been moved somewhere else".
If a cross-wiki redirect is used, you will in fact get an HTTP 302 ('Found') redirect. However cross-wiki redirects are generally disabled as they're difficult to maintain and easy to abuse. A 301 code is generally avoided except for really clear canonical normalizations, as that can have more permanent side-effects on clients, at least in theory. (Note that Comment #1 is incorrect. The redirect applies to the URL, not just to the path portion of it.)