Page MenuHomePhabricator

wikimediacommons.org forwards to en.wikipedia.org
Closed, ResolvedPublic

Description

Author: titoxd.wikimedia

Description:
As reported in http://en.wikipedia.org/wiki/Wikipedia:Reference_desk/Computing#Commons.3F, typing *.wikimediacommons.org in a browser address bar silently forwards the request to en.wikipedia.org. It would probably make more sense if it were sent to commons.wikimedia.org instead...


Version: unspecified
Severity: normal
URL: http://wikimediacommons.org

Details

Reference
bz20445

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:49 PM
bzimport added a project: DNS.
bzimport set Reference to bz20445.

Probably needs a regex entry fixed or added in redirects.conf.

fvassard wrote:

The redirect indeed had a couple problems:
Use to be

RewriteCond %{HTTP_HOST} ([a-z]+)\.wikimediacommons.(net|info|mobi|eu)
RewriteRule ^(.*)$ http://commons.wikimedia.org/$1 [R=301,L]

Now is

RewriteCond %{HTTP_HOST} ([a-z]+).wikimediacommons.(net|info|mobi|eu|org)
RewriteRule ^(.*)$ http://commons.wikimedia.org$1 [R=301,L]

Sadly, the rewrites are cached, so it might take a while before the change takes effect.
However, the problem should be fixed once the cache expires.