• 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, https://www.mydomainname.com/wordpress/wp-content/image.png are still trying to reach the internet site and not my localhost.

    cheers!

    kilolima

Viewing 1 replies (of 1 total)
  • Thread Starter kilolima

    (@kilolima)

    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?

Viewing 1 replies (of 1 total)
  • The topic ‘run WP from localhost and use same domain name while offline’ is closed to new replies.