I have small query today I happen to see when I typed a website “http://www.websitename.net”
it automatically got converted to “http://www.websitename.com” i.e., .net to .com and then the page as loaded.
I am eager to know how it has been done.
This is generally done as a server-side redirect.
You can watch the network traffic and see for yourself what happens. For example in IE9, use the Developer Tools (F12), click the Network tab, and click the “Start capture” button to start monitoring. Other browsers have similar features.
In the Response headers you’ll see something like