Page MenuHomePhabricator

*.wikimediacommons.org goes to Commons, but wikimediacommons.org goes to English Wikipedia
Closed, ResolvedPublic

Details

Reference
bz26600

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:14 PM
bzimport set Reference to bz26600.
bzimport added a subscriber: Unknown Object (MLST).

Not a DNS issue but a web server config issue.

john wrote:

Line 287 in redirects.conf should be

RewriteCond %{HTTP_HOST} ([a-z]+\.)?wikimediacommons\.(net|info|mobi|eu|org)

jeluf wrote:

Done.

Index: redirects.conf

  • redirects.conf (revision 34)

+++ redirects.conf (working copy)
@@ -281,7 +281,7 @@

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

+ RewriteCond %{HTTP_HOST} ([a-z-]+\.)*wikimediacommons.(net|info|mobi|eu|org)

RewriteRule ^(.*)$ http://commons.wikimedia.org$1 [R=301,L]

# Localised TLDs

HEAD / HTTP/1.0
Host: wikimediacommons.org
User-agent: JeLuF

HTTP/1.1 301 Moved Permanently
Date: Fri, 12 Aug 2011 18:12:00 GMT
Server: Apache
Location: http://commons.wikimedia.org/
Cache-Control: max-age=2592000
Expires: Sun, 11 Sep 2011 18:12:00 GMT
Connection: close
Content-Type: text/html; charset=iso-8859-1