XF 2.2 Redirecting attachments to new domain query

Empty

Active member
Licensed customer
I've changed my domain and can see that some posts that manually linked attachments from the old domain, have been broken.

I found this mysql query and was wondering if this will still work on xenforo 2.2?

Run this query on your database:

Code:
UPDATE xf_post
SET message = REPLACE(message, 'http://domainONE.com', 'http://domainTWO.com')
 
Back
Top Bottom