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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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
Product: MediaWiki
Classification: Unclassified
Redirects (Other open bugs)
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  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: ---


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 ?


Current headers via `curl -D`:

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
X-Cache-Lookup: HIT from
X-Cache: MISS from
X-Cache-Lookup: MISS from
Via: 1.0 (squid/2.6.STABLE13), 1.0
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.