WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. kilolima
    Member
    Posted 2 years ago #

    Hi,

    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 :

    127.0.0.1 mydomainname.com

    and also this :

    mydomainname.com 127.0.0.1

    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.

    cheers!

    kilolima

  2. kilolima
    Member
    Posted 2 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