I have a centos machine running WordPress. For security reasons, the traffic goes through a third-party company so it can filter possible malicious access to the site (it works like a firewall between this machine and all the traffic to it). I needed to run a copy of the machine to test some stuff. I copied it and run it on a different IP address, but the machine still redirected to the original one. I removed certs and created new ones and changed all DNS name to the new IP in httpd.conf. But that didnt solve the problem. Any ideas what configurations/changes I am missing here?
2
Answers
Did you replaced your old site url to new ip address url in your database?
Here are few things you can start with:
Update the A record and CName record from your domain name provider.
Check if there is any other virtual host/server block config for your site. Update them accordingly and don’t forget to restart your web server.
Check on the database if any old url exists, if yes, replace with new.
Hope that helps!