80 How To Change Domain Name In Localhost In This Year

To change your localhost to domain name all you need to do is run your wamp server and go to localhost page.
How to change domain name in localhost. 3 add lines containing the domain name s and ip address to redirect to. This technique is a little bit easier than method one. Change localhost to domain name in window ad your favorite domain name method two.
Below is the step by step guide to change localhost to domain name for xampp in a windows computing environment. Setting up a custom domain name instead of a localhost will help you when testing of many things such as redirecting a non www to a www website or vice versa or redirecting from http to https before publishing a website to the production hosting environment. Each line must begin with the address 127 0 0 1 this is the localhost address after the ip address type the name of the domain you wish to redirect to this address.
See the section in the red box in the image above. Point the custom domain to 127 0 0 1. Let s break the tutorial into 3 different parts.