Diocese of St. Petersburg 2019

Match file URLs to new site so links aren't broken

Assigned to
Ryan Ross, Developer at Diocesan Ryan R.
Notes
Run find & replace to remove multisite & site ID

Comments & Events

Ryan Ross, Developer at Diocesan
This is done.

Naturally with this sort of database sweep, there are chances for human error (mainly misspelling).  

Additionally, there may be uploads that were not moved and now result in a 404.

Basically, check to see if the file exists in uploads first, as that will help determine any course of action.

Sidenote - Better Search and Replace struggled for some reason, so I handled these via cPanel PHP myAdmin, ie...

UPDATE `wpsp_posts`
SET `post_content` = REPLACE(`post_content`, 'www.dosp.org/apa/wp-content/uploads/sites/4/', 'dosp2.diocesanweb.com/wp-content/uploads/4_'),
`post_content` = REPLACE(`post_content`, 'www.dosp.org/blackcatholic/wp-content/uploads/sites/5/', 'dosp2.diocesanweb.com/wp-content/uploads/5_'),
`post_content` = REPLACE(`post_content`, 'www.dosp.org/boyscouts/wp-content/uploads/sites/6/', 'dosp2.diocesanweb.com/wp-content/uploads/6_')
Ryan Ross, Developer at Diocesan
Ryan Ross completed this to-do.