WordPress logoIf you’ve ever moved your WordPress site to another location, you’ll find that all your images end up broken because they all point to the old domain.

The problem is, all the image paths stored in the database are static, so you’ve got to update them to the new location.

Usage case: My usage case is that I’m moving an old WordPress site to my local computer to use as a sandbox for theme design. So all the references to myolddomain.com need to be changed to localhost/sandbox (the directory on the server that my WordPress installation is on).

Continue reading