If you will be moving a store and you want to continue using the same domain name, you will probably run into a timing issue when you are ready to test the new store. Since the domain name still points to the IP address of the old store, you cannot also use it to point to the new store while you are testing it. You can obtain a temporary .auth file for the new store that uses the IP address instead of the domain name, but there is an easier solution.
When you type a URL or domain name into your browser, the browser looks in a couple of places to translate that URL into an IP address. Your ISP maintains one or more DNS (Domain Name Service) servers that your browser uses for most URLs. However, you can override the information from the DNS servers by creating a hosts file on your own computer.
A hosts file is a simple text file that contains one line for each IP address that you want to define. Each line contains an IP address, some white space, and the URL that will be used for that IP address. For example, here is a sample line for shopsite.com:
207.126.116.65 shopsite.com
If you had that entry in a hosts file on your computer, whenever you told your browser to go to shopsite.com it would go to 207.126.116.55, regardless of the real IP address for that site. All URLs that are relative to the domain name are also controlled by the entry in the hosts file.
The only tricky thing about a hosts file is the location of the file on your PC. On Windows systems, the file must be in the c:\windows directory. On some Linux systems, it must be in the /etc directory. If the file is not in the correct directory, your browser will not find it to use the information.
Here are the steps for using a hosts file for testing a new ShopSite store:
201.123.456.78 mystore.com
ShopSite Help and Resource Center April 3, 2003 Give Feedback |
ShopSite Shopping Cart Software |