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 127.0.0.1 to 127.0.0.1/127.0.0.1/about. If I click another link on the About page, this causes an infinite loop of redirections. I get
The 127.0.0.1 page isn’t working. 127.0.0.1 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 127.0.0.1, but an internal network address. I just used that for the sake of the question.