We have migrated a ModX site from one URL to another using ModBak. I am extremely happy with how fast we managed this. Well done!
Unfortunately, whilst carrying out some final checks yesterday I noticed (to my horror) that the content in the pages (for example images) still pointed to the old URL. This is because when the client used TinyMCE to create content, it automatically inserted the url in front of assets/images/image.jpg so they all look like
http://www.olddomain.com/assets/images/image.jpg These obviously need updating to the new URL. We have over 200 pages so now to my question:
How could I create a short script to loop through the content column in the modx_site_content table and do a find and replace?
We have phpMyAdmin, and if anyone has done something like this before....a couple of pointers would be great!
Thanks for any help,
Taff