Problem with localhost
-
Hello all,
I am having a weird problem with a local installation on OS X and using multiple networks. Using the network I installed WP on, everything works great. When I switch to my office location, I start having trouble using localhost as the address and it keeps trying to redirect to the IP of the other network. I don’t have the IP’s in any of the config or virtual host files. It appears that is is only happening on the admin side.
If I got to:
https://localhost/~patrick/wordpress/
it’s working (at least today)When I try and go to https://localhost/~patrick/wordpress/wp-admin I get:
https://192.168.2.6/~patrick/wordpress/wp-login.php?redirect_to=http%3A%2F%2Flocalhost%2F~patrick%2Fwordpress%2Fwp-admin%2FMy local IP at the office is at 192.168.1.100. My config file is set to define(‘DB_HOST’, ‘localhost’); as define(‘DB_HOST’, ‘localhost:/tmp/mysql.sock’); was not working here.
Any idea what’s up? Thanks!
- The topic ‘Problem with localhost’ is closed to new replies.