So, I duplicated my website (by just duplicating the VM in Proxmox under another name) so I could use the local duplicate to test settings and develop the site. I have edited the database, changed the site URL from wp-config.php and everything kind of seems to work.

The page address is now just an IP address, but when I click a link on the site, the address "duplicates" itself. If I click a link called "about", the address changes from to If I click another link on the About page, this causes an infinite loop of redirections. I get

The page isn’t working. redirected you too many times.

and the page address is an endless loop of the IP and page addresses. I have no idea what causes this, could anyone help? Note: the actual address isn't, but an internal network address. I just used that for the sake of the question.

  • How did you edit the database? – Max Yudin Mar 9 '17 at 11:22
  • @MaxYudin with phpMyAdmin. – shortyputting Mar 9 '17 at 11:37
  • You should use Search Replace DB or a migration plugin. – Max Yudin Mar 9 '17 at 11:41
  • @MaxYudin That's unfortunately not possible due to IS reasons. Do you think this is an issue related to our actual domain that's still somewhere in the database? – shortyputting Mar 9 '17 at 11:51
  • Yes, it's very likely. – Max Yudin Mar 9 '17 at 12:01

Found the issue: in wp-config.php, there was no http:// before the address on the define('WP_HOME' line. From Wordpress Codex:

Add these two lines to your wp-config.php, where "example.com" is the correct location of your site.


Adding these properly solved the issue.

Not the answer you're looking for? Browse other questions tagged or ask your own question.