addressalign-toparrow-leftarrow-leftarrow-right-10x10arrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcredit-cardcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobe--smallglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1languagelaunch-new-window--smalllight-bulblightning-boltlinklocation-pinlockm-swarmSearchmailmediummessagesminusmobilemoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstar-shapestartickettrashtriangle-downtriangle-uptwitteruserwarningyahooyoutube

Re: Redirect Image URLs htaccess

From: Ben F.
Sent on: Tuesday, September 2, 2014, 9:16 AM
As others have said, replace the URLs in the database. If you're comfortable with the command line, and your host allows it, install wp-cli and use it's search-replace tool (i.e. wp search-replace olddomain newdomain). 

Otherwise, I recommend this search replace script: https://github.com/interconnectit/Search-Replace-DB . It will replace the domains in every single location of your site, including serialized data. I've been using it for years with zero issues, apart from typos :)

Regards,

Ben

People in this
group are also in: