Last modified: 2011-03-13 18:06:39 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T13946, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 11946 - Server should return http status code 301 on "this page has been moved" pages
Server should return http status code 301 on "this page has been moved" pages
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Redirects (Other open bugs)
1.12.x
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
http://meta.wikimedia.org/wiki/How_to...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-11-12 00:26 UTC by Joshua C. Lerner
Modified: 2011-03-13 18:06 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Joshua C. Lerner 2007-11-12 00:26:13 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)
Comment 1 Roan Kattouw 2007-11-12 14:50:06 UTC
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".
Comment 2 Brion Vibber 2007-12-05 20:52:51 UTC
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.)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links