https://zh-yue.wiktionary.org/wiki/Page should redirect to https://yue.wiktionary.org/wiki/Page just as https://yue.wikipedia.org/wiki/Page redirects to https://zh-yue.wikipedia.org/wiki/Page, but it redirect to https://yue.wiktionary.org/wiki/%E9%A0%AD%E7%89%88. Can you fix it please?
|Resolved||Reedy||T205546 Create Wiktionary Cantonese|
|Resolved||ArielGlenn||T209693 Redirect from zh-yue.wiktionary.org is not working properly|
There is no rewrite rule for zh-yue wiktionary; there is one for yue wikipedia. See line 97: https://gerrit.wikimedia.org/r/plugins/gitiles/operations/puppet/+/production/modules/mediawiki/files/apache/sites/redirects/redirects.dat
zh-yue wiktionary requests are sent to the incubator main page (https://incubator.wikimedia.org/wiki/Wt/zh-yue?goto=mainpage) which is the source of your problem. That's done somewhere in MediaWiki configs, not by dns or apache redirects. Someone who knows about our setup of https://www.mediawiki.org/wiki/Extension:WikimediaIncubator should look at this. My grep of CommonSettings etc didn't turn up much.
The WikimediaIncubator extension is working as intended, as it is supposed to direct users to the main page of the wiki. I think a rewrite rule in redirects.dat should achieve what the reporter originally intended.
I'm ignoring zh-min-nan for the purposes of this ticket.
One line is just as easy as 5 or 6 when they are all the same sort of redirect for the same language codes.
It looks like the projects that get bounced through the incubator right now are wiktionary, wikinews, wikibooks, wikiquote, wikivoyage. I'll set up a patchset for those.
Nope, this is wrong. We want all the redirects to go from zh-yue to yue... it seems. So why does yue.wikipedia go to zh-yue.wikipedia?
Sorry for seeming to make it more complicated, what I don't want to do is make it *wrong*.
So why does yue.wikipedia go to zh-yue.wikipedia?
T10217 and T30441
Initially created at zh-yue in 2006, Cantonese Wikipedia didn't have a proper ISO 639-3 code. But soon after that, the code "yue" got approved. However, wiki renaming has been impossible (possible, but problems would arise).
What to do now: Find the mysterious rewrite rule, modify it such that zh-yue.wiktionary.org redirects to yue.wiktionary.org instead of incubator.wikimedia.org/wiki/Wt/zh-yue?goto=mainpage
Ok, I have read all the dang back tckets and thanks everyone for their comments. I am skipping wikisource and betawikiversity because it's more complication than I want to deal with. But here's a changeset that *should* cover everything else so we can not worry about this again, for everything else, except of course the wikipedia rename.
$ curl -D someheaders.txt -H 'X-Wikimedia-Debug: backend=mwdebug1002.eqiad.wmnet' 'https://zh-yue.wiktionary.org/wiki/Page' <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>301 Moved Permanently</title> </head><body> <h1>Moved Permanently</h1> <p>The document has moved <a href="https://yue.wiktionary.org/wiki/Page">here</a>.</p> </body></html>
$ more someheaders.txt HTTP/2 301 date: Thu, 22 Nov 2018 09:28:27 GMT content-type: text/html; charset=iso-8859-1 content-length: 244 location: https://yue.wiktionary.org/wiki/Page server: mwdebug1002.eqiad.wmnet expires: Sat, 22 Dec 2018 09:28:27 GMT <snip>
So it looks good to me. This should be live on all production servers in about half an hour.