Last modified: 2010-03-27 16:34:41 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T3698, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 1698 - Make www.$1.wiki(media|pedia...).org redirect to $1.wiki(media|pedia...).org
Make www.$1.wiki(media|pedia...).org redirect to $1.wiki(media|pedia...).org
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
DNS (Other open bugs)
unspecified
All All
: Normal minor with 5 votes (vote)
: ---
Assigned To: Rob Halsell
: shell
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-03-14 23:11 UTC by SJ
Modified: 2010-03-27 16:34 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description SJ 2005-03-14 23:11:52 UTC
I have a "http://commons.wikimedia.org" link in my sig.  Two complaints so far
about getting an error on visiting the link, which turned out to be people going
to www.commons....
Comment 1 Ævar Arnfjörð Bjarmason 2005-03-24 11:12:46 UTC
Making it a general bug.
Comment 2 Antoine "hashar" Musso (WMF) 2005-03-25 19:36:37 UTC
Really strange noobs. You give them a link and instead of clicking on
it to directly display the text they rewrite it adding www.

Seriously, I am against adding a www entry in front. People should
just learn that all sites do not begin with www all the time.
Comment 3 Walter Vermeir 2005-08-31 09:41:54 UTC
It could also redirect to www.wikimedia.org   

@Ashar Voultoiz; 
People should also learn that not al websites and on ".com". I am in favor to send all 
www.wikipedia.com and *.wikipedia.org traffic to a page that says; we are an .org and proud of 
it. And redirect afther 10 seconds to www.wikipedia.org.
Comment 4 Antoine "hashar" Musso (WMF) 2006-01-17 20:40:11 UTC
http://www.fr.wikipedia.org/ is redirected to http://fr.wikipedia.org/

http://www.commons.wikimedia.org/ is not!
Comment 5 Robert Leverington 2007-03-29 15:07:10 UTC
I think that this would be useful,  I just typed 'www.' and then realized that I
didn't actually want that site and wanted meta so continued it and reached the
'Problem loading page' display. It would increase productivity if this were done.
Comment 6 SJ 2009-04-18 22:14:43 UTC
I know this is an ancient low-pri bug but I'd still love to see it happen.
Comment 7 Nikola Smolenski 2009-10-27 17:19:37 UTC
I noticed this bug recently, and want to add that seems to be a problem with all the projects except Wikipedia. http://www.en.wikisource.org/ , http://www.en.wiktionary.org/ and others at least offer a somewhat informative error page but they should redirect to their project like Wikipedia does (if it is for some reason too difficult to do this by fixing DNS, it could be done in PHP or Javascript of the error page itself). But http://www.commons.wikimedia.org/ and http://www.meta.wikimedia.org/ don't offer even that. Note that http://www.google.com/search?q=%22www.commons.wikimedia.org%22 gives a 100,000 results.
Comment 8 JeLuF 2010-03-27 07:54:13 UTC
Done. I didn't add *.wikimedia.org due to the high number of 'other' special hosts in that domain.

Postrewrite:
------------

<VirtualHost *>
ServerName redirector-ws.wikipedia.org
ServerAlias *.wikisource.org
ServerAlias *.wiktionary.org
ServerAlias *.wikiversity.org
ServerAlias www.commons.wikimedia.org
ServerAlias www.meta.wikimedia.org

    RewriteEngine On

    RewriteMap lowercase int:tolower
    RewriteCond %{HTTP_HOST} ^www\.([^\.]+)\.([^\.]+)\.org
    RewriteRule ^(.+) ${lowercase:%{HTTP_HOST}}$1 [C]
    RewriteRule ^www\.([^\.]+)\.([^\.]+)\.org(.*)$ http://$1.$2.org$3 [R=301,L]

</VirtualHost>
Comment 9 JeLuF 2010-03-27 07:59:35 UTC
I was too optimistic. Apparently not working. Investigating.
Comment 10 JeLuF 2010-03-27 09:06:45 UTC
OK, this time it worked.

The postrewrite section of our http config apparently is not being used any more, the catch-all rewrites are already included in the general per-project <VirtualHost> containers.
Comment 11 Nemo 2010-03-27 16:34:41 UTC
Is bug 16994 fixed, too?

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links