40 Use Domain Name In Localhost In This Year

Open iis click win r enter inetmgr in the dialog and click ok.
Use domain name in localhost. Preparing the website to launch on your browser. Left click on the wamp icon in the notification area and click on www directory. Expand the server node and click on the sites folder.
Click on add website in the actions pane. Alternatively search for iis manger in start window. This technique is a little bit easier than method one.
Change localhost to domain name in window ad your favorite domain name method two. In windows xp this file is located in c windows system32 drivers etc. Open the file with a plain text editor like.
Different versions of windows may store the file in a different directory. If you want to create a new website then that is possible for accessing using a domain name. With xampp windows locate your hosts file.
Now you need to configure the home page for your custom domain. If your custom domain name matches with an existing website your browser will open the localhost instead of the website while your local server is running. And depending on your windows setup you might need to be logged in as an administrator to modify the hosts file.