Issue
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.
Solution
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
Key Value
Response HTTP/1.1 301 Moved Permanently
Location http://mywebsitename.net
Answered By - Eric J. Answer Checked By - David Marino (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.