'localhost'being replaced with 'www.livesite.com' in URL of ONE of my local'
-
Hi All,
Im new to this forum and I could really use some expert advice.
I have posted this on another forum with no joy, and had my hosting provider on the phone for half an hour before eventually giving up (local installs not really covered under web support!), I really cant get my head around it.
Im using WordPress, Im new to web dev, and last year learned how to install a local version of the site for testing purposes which I have done around ten times with no problems.
However, the most recent time I have tried this, when I type ‘localhost/mytestsite’ it redirects me to ‘www.mylivesite.com/mytestsite’ and obviously get a 404.
Every other old local site I have is working fine i.e. ‘localhost’ is not being replaced with ‘www.livesite.com’ in the URL. I have even removed the .htaccess and obviously triple checked that the options in the DB are correct, as well as the credentials in the wp-config, and added:
define(‘WP_HOME’,’http://localhost/mytestsite’);
define(‘WP_SITEURL’,’http://localhost/mytestsite’);However, when I type in 127.0.0.1 in my address bar it DOES send me to http://www.mylivesite.com, despite the old local installs working fine?!
Can anybody help me figure out what is causing the localhost to do this? I am at a loss.
Im using MAMP, let me know if any more info can help.
Thanks in advance for anybody that can help
All the best
Rob
- The topic ‘'localhost'being replaced with 'www.livesite.com' in URL of ONE of my local'’ is closed to new replies.