I don’t know how this eluded me for so long…  I remember breaking MAMP a number of years ago by editing the hosts file on my Mac, and I think I have been afraid to edit that file ever since.

Tonight I needed to test out a domain before changing the dns.  I have the new site ready to roll – an add-on domain created in cPanel at a specific ip.  (Basically, I have mydomain.com ready to roll at an ip address of

The secret sauce was to go into my hosts file and add a line that says: mydomain.com www.mydomain.com

That’s it!  Now when I go to mydomain.com in a web browser on my computer, it displays the new site!  Pretty awesome!



We love to communicate: phone, email, text, Facebook, Twitter, LinkedIn, you name it.




Enroll in Our Free Beginner WordPress Class - delivered to your Email Inbox!

Become a WordPress superstar for FREE in only minutes a day!  Our free Beginner WordPress Email Class will be delivered to your inbox!

Learn More 

You Have Successfully Enrolled! Prepare For Amazing!