• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Renaming links

Renada

Active member
#1
Hi,

I'm moving my forum to a folder of a different name, something more appropriate to the content. Everything works except for a few links that still insist on displaying the old folder name thus resulting in broken links.

Could anyone tell me a query I could run or what else I need to do to update all these links? I've rebuilt all the cache etc. and that didn't fix it.

Regards,
Renada :)
 

Brogan

XenForo moderator
Staff member
#2
Are you referring to post content?

If so, you can run a query on the database like so:

UPDATE xf_post SET message = REPLACE(message, 'old_path', 'new_path')

Just replace old_path and new_path as necessary.

Take a backup first though, just in case.
 

Renada

Active member
#3
Are you referring to post content?

If so, you can run a query on the database like so:

UPDATE xf_post SET message = REPLACE(message, 'old_path', 'new_path')

Just replace old_path and new_path as necessary.

Take a backup first though, just in case.
Ta muchly Brogan, you're a star :)