Page MenuHomePhabricator

Always redirect wikidata.org to www.wikidata.org
Closed, ResolvedPublic

Description

When users are on wikidata.org (w/o the www.), they've had problems with being able to edit stuff.

Not sure what/if anything can be done in the code itself to alleviate this, but think it's more likely and helpful to adjust the apache and other configs to get it *right*.


Version: wmf-deployment
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=44612
https://bugzilla.wikimedia.org/show_bug.cgi?id=41847
https://bugzilla.wikimedia.org/show_bug.cgi?id=49261
https://bugzilla.wikimedia.org/show_bug.cgi?id=54273

Details

Reference
bz45005

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 1:27 AM
bzimport added a project: Wikidata.org.
bzimport set Reference to bz45005.
bzimport added a subscriber: Unknown Object (MLST).

(In reply to comment #0)

When users are on wikidata.org (w/o the www.), they've had problems with
being
able to edit stuff.

http://lists.wikimedia.org/pipermail/wikitech-l/2013-February/066764.html says it also happens with the fake language subdomains.

How is this different from bug 41847?

As discussed we will close this bug (Verified in Wikidata demo sprint 34)

Re-opening this bug for now as I'm confused. The bug summary is "Always redirect wikidata.org to www.wikidata.org".

When I go to http://wikidata.org/wiki/Wikidata:Main_Page, I am not redirected to www.wikidata.org.

And the Gerrit changeset from comment 1 has not been merged (or abandoned).

$:andre\> wget wikidata.org
--2013-03-14 19:08:07-- http://wikidata.org/
Resolving wikidata.org... 208.80.152.218
Connecting to wikidata.org|208.80.152.218|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://www.wikidata.org/wiki/Wikidata:Main_Page [following]
--2013-03-14 19:08:11-- http://www.wikidata.org/wiki/Wikidata:Main_Page
Resolving www.wikidata.org... 208.80.154.242, 2620:0:861:ed1a::12
Connecting to www.wikidata.org|208.80.154.242|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 51884 (51K) [text/html]
Saving to: “Wikidata:Main_Page”
100%[===================================================================================================>] 51,884 5.36K/s in 9.4s
2013-03-14 19:08:27 (5.36 KB/s) - “Wikidata:Main_Page” saved [51884/51884]

$:andre\> wget http://wikidata.org/wiki/Wikidata:Main_Page
--2013-03-14 19:09:04-- http://wikidata.org/wiki/Wikidata:Main_Page
Resolving wikidata.org... 208.80.152.218
Connecting to wikidata.org|208.80.152.218|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 51787 (51K) [text/html]
Saving to: “Wikidata:Main_Page.1”
100%[===================================================================================================>] 51,787 16.6K/s in 3.0s
2013-03-14 19:09:11 (16.6 KB/s) - “Wikidata:Main_Page.1” saved [51787/51787]

fyi, this (and other Apache config / redirects) does not need ops (root). Everybody can submit a gerrit change and for deploying it you can also do it as regular shell user again, since we just fixed apache-graceful-all the other day, so that it also restarts Apaches in eqiad now.

how to check the config:

git clone https://gerrit.wikimedia.org/r/p/operations/apache-config

cd apache-config

grep wikidata *

Daniel: https://gerrit.wikimedia.org/r/#/c/49069/

it's intended to treat wikidata like mediawiki.org, as far as apache config goes, although would like your review that my patch is good or suggestions.

It's not the best solution but might help, per https://bugzilla.wikimedia.org/show_bug.cgi?id=41847#c30

https://gerrit.wikimedia.org/r/#/c/55024/

We really need someone to review the apache change and get it fixed the *right* way.

  • Bug 44707 has been marked as a duplicate of this bug. ***

So, what's the latest intention here?

certain:
301 wikidata.org -> www.wikidata.org

what about (fake?) lang subdomains? redirect as well? 301 or 302?

302 {langcode}.wikidata.org/wiki/{Title} -> www.wikidata.org/wiki/Special:ItemByTitle/{langcode}wiki/{Title} would be awesome!

Wouldn't the expected behavior be something like

302 {langcode}.wikidata.org/wiki/{Title} ->
www.wikidata.org/wiki/{Title}?setlang={langcode}

This is although troublesome in those cases where Wikipedia do weird and unexpected things with the langcode, but that is also the case if the ItemByTitle is used.

https://gerrit.wikimedia.org/r/49069 (Gerrit Change I7bb872fd9cf6c1da7655f77def7f3ce43975218a) | change APPROVED and MERGED [by Tim Starling]

Change 113972 had a related patch set uploaded by Thiemo Mättig (WMDE):
Redirect all *.wikidata.org subdomains to www.wikidata.org

https://gerrit.wikimedia.org/r/113972

Change 119032 had a related patch set uploaded by Faidon Liambotis:
Remove language subdomains for wikidata.org

https://gerrit.wikimedia.org/r/119032

Change 119032 merged by Faidon Liambotis:
Remove language subdomains for wikidata.org

https://gerrit.wikimedia.org/r/119032

Change 113972 abandoned by Thiemo Mättig (WMDE):
Redirect all *.wikidata.org subdomains to www.wikidata.org

https://gerrit.wikimedia.org/r/113972