Support » Localhost Installs » Restore localhost url after changing in WP Admin Panel

  • Resolved gataman


    I have installed WordPress on a spare PC and developed a website for our local Computer Club.
    To demonstrate the web site I wanted users to be able to view the website on the same LAN. However whilst using the IP address of the PC gave access to the PC file system it did not access WordPress.

    Following advice on a forum, in the WordPress Administration Panel I changed the Address (URL) and Site Address (URL) from
    http://localhost/~user/wordpress to where this was the LAN IP address of the spare PC.
    After this, I still cannot access WordPress over the LAN, but more seriously I cannot get in to the WordPress admin on the PC either. I realise now that this was an unwise change.

    How can I get in WordPress now please?

    By editing wp-config and functions.php as per
    I have tried reverting to the previous localhost settings http://localhost/~user/wordpress but these had no effect. localhost in my pc browser appears to point to /var/www/html but my wordpress directory is in /user/public_html so perhaps I am entering the wrong addresses?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Restore localhost url after changing in WP Admin Panel’ is closed to new replies.