run WP from localhost and use same domain name while offline (2 posts)

  1. kilolima
    Posted 4 years ago #


    I would like to be able to run WP from my computer using WAMP (Win7) as usually do not have internet at home. I have WAMP/WP installed and it all works, except for those urls (for images or links) that use the domain name of the website. Is there someway that while I am offline I can set my computer to direct requests for that domain name to localhost? I tried adding this to the hosts file : mydomainname.com

    and also this :


    but url requests, for example, http://www.mydomainname.com/wordpress/wp-content/image.png are still trying to reach the internet site and not my localhost.



  2. kilolima
    Posted 4 years ago #

    oh, and to elaborate, I don't mind just using url links without the domain name, like /wordpress/blah-post but read somewhere that this was a bad idea?

Topic Closed

This topic has been closed to new replies.

About this Topic