This is not URL re-writing (which is done as web server level) but dns resource records entry manipulation. 

If you look at facebook case, we have a cname for to www (which could be automated via generate function in bind, possibly)


;; QUESTION SECTION:
;www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.facebook.com. IN A

;; ANSWER SECTION:
www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.facebook.com. 30 IN CNAME www.facebook.com.
www.facebook.com. 84 IN A 69.63.190.18

;; AUTHORITY SECTION:
www.facebook.com. 138 IN NS glb01.lhr1.tfbnw.net.
www.facebook.com. 138 IN NS glb01.snc1.tfbnw.net.
www.facebook.com. 138 IN NS glb01.ash1.tfbnw.net.
www.facebook.com. 138 IN NS glb01.hkg1.tfbnw.net.

;; ADDITIONAL SECTION:
glb01.ash1.tfbnw.net. 4922 IN A 69.63.185.11
glb01.hkg1.tfbnw.net. 4922 IN A 69.63.185.86
glb01.lhr1.tfbnw.net. 4922 IN A 69.63.191.91
glb01.snc1.tfbnw.net. 4922 IN A 69.63.179.22





-----Original Message-----
From: TheBigBoss <thebigboss@peperuka.com>
Reply-to: Skunkworks Mailing List <skunkworks@lists.my.co.ke>
To: Skunkworks Mailing List <skunkworks@lists.my.co.ke>
Subject: Re: [Skunkworks] Multiple WWW
Date: Thu, 28 Oct 2010 13:30:07 +0300

You'll be surprised to hear that a large proportion of webistes still fail at basic URL rewriting (www vs no-www) - a good exemple, try http://eliteken.com/ and would be (fail to understand why) to a Google Calendar page.

There are people like me who rarely click on link but prefer copy and paste URL in short version without http:// and www

Nonetheless, I don't do URL rewriting for nth level subdomain...

TheBigBoss TheBigBoss
Nairobi, Kenya
Email: TheBigBoss@peperuka.com
Peperuka

Suivez-moi: FacebookTwitter

On 28 October 2010 12:46, David Njuguna <dnjuguna@gmail.com> wrote:
wildcard dns entry.



On Thu, Oct 28, 2010 at 12:36 PM, [ Brainiac ] <arebacollins@gmail.com> wrote:
URL rewriting ?
cause all those are sub domains to the nth level. even www is a sub domain.:-)


On Thu, Oct 28, 2010 at 11:53 AM, Erick Njenga <eriknjenga@gmail.com> wrote:


Hi Skunks. I'm just curious as to how you can use multiple WWW portions of the url to access sites like facebook e.g.
http://www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.www.facebook.com/
works the same as:
http://www.facebook.com/
but the same doesn't apply to other websites.
 

--


Thanks and Regards,
Erick Njenga Nyachwaya,
M: +254-725-008-790













_______________________________________________
Skunkworks mailing list
Skunkworks@lists.my.co.ke
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------
Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke



--
Regards,

Collins Areba.

Strategic Operations.
Center for Renewable Alternatives
Old Ferry Road, off Msa Malindi Rd, | Kilifi, Kenya. +254 720 516758 /734 696821 | skype/gtalk/twitter:  arebacollins





_______________________________________________
Skunkworks mailing list
Skunkworks@lists.my.co.ke
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------
Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke



_______________________________________________
Skunkworks mailing list
Skunkworks@lists.my.co.ke
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------
Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke

_______________________________________________
Skunkworks mailing list
Skunkworks@lists.my.co.ke
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------
Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke