How are these new URLs such as mail.yahoo.com or groups.google.com made? is it some sort of URL rewriting? or ??
any help about how to make such a thing or a tleast a guide towards it is appreciated.
Thanks in advance.

Recommended Answers

All 4 Replies

Not to be misunderstood, I'm talking about the portion of the URL before the website's name like the 'mail' in mail.yahoo.com or 'finance' in finance.yahoo.com, is this URL rewriting or what is it?

No that is just a DNS subdomain.

sk@sk:~$ host google.com
google.com has address 74.125.67.100
google.com has address 74.125.127.100
google.com has address 74.125.45.100
google.com mail is handled by 10 smtp2.google.com.
google.com mail is handled by 100 google.com.s9a2.psmtp.com.
google.com mail is handled by 10 smtp1.google.com.
google.com mail is handled by 10 smtp3.google.com.
google.com mail is handled by 10 google.com.s9a1.psmtp.com.
sk@sk:~$ host mail.google.com
mail.google.com is an alias for googlemail.l.google.com.
googlemail.l.google.com has address 74.125.65.17
googlemail.l.google.com has address 74.125.65.83
googlemail.l.google.com has address 74.125.65.19
googlemail.l.google.com has address 74.125.65.18

This is all by having a web server and ISS or any such web servers to host the sites. And creating such URL's through those. I am not giving the exact answer but a gist of how it works. This URL is then, internally by the web application for yahoo or google they hosted, taken care of. Say, mail.google.com will take you to the mailbox server where as, groups.google.com will take u to another.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.