Cloning Wordpress: Domain Appearing Twice in Links?


I’ve cloned my wordpress site by creating another droplet. I want to run it as a test site.

At the moment, all the links to stylesheets etc point to: IP-Address/the-revelant-file/IP-Address/the-relevant-file

So as you can see the link is essentially duplicating for all the links to files.

Any way to stop this? Thanks.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hey there,

Your best bet is to manually override the WordPress name by editing the wp-config.php file and placing these lines just above the database connection details:


You can either point a ‘’ to your cloned Droplet, or use the IP address in it’s place http://111.222.333.444.

Note: You’ll want to make sure any changes you make are not hardcoded to your development IP or domain if you plan on copying your WordPress installation back to the live server. Make sure that any theme edits or posts/pages do not reference full paths with the IP or domain name. For example, instead of http://111.222.333.444/wp-content/uploads/test.jpg, you would want to use /wp-content/uploads/test.jpg.