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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 1698 - Make www.$|pedia...).org redirect to $|pedia...).org
Make www.$|pedia...).org redirect to $|pedia...).org
Product: Wikimedia
Classification: Unclassified
DNS (Other open bugs)
All All
: Normal minor with 5 votes (vote)
: ---
Assigned To: Rob Halsell
: shell
Depends on:
  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: ---


Description SJ 2005-03-14 23:11:52 UTC
I have a "" 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   

@Ashar Voultoiz; 
People should also learn that not al websites and on ".com". I am in favor to send all and * traffic to a page that says; we are an .org and proud of 
it. And redirect afther 10 seconds to
Comment 4 Antoine "hashar" Musso (WMF) 2006-01-17 20:40:11 UTC is redirected to 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. , 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 and don't offer even that. Note that gives a 100,000 results.
Comment 8 JeLuF 2010-03-27 07:54:13 UTC
Done. I didn't add * due to the high number of 'other' special hosts in that domain.


<VirtualHost *>
ServerAlias *
ServerAlias *
ServerAlias *

    RewriteEngine On

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

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.