Notifications
Clear all

wpForo 1.x.x [Closed] Just migrated WP to a new domain... how to change URLs to new site?

2 Posts
2 Users
0 Likes
3,243 Views
Posts: 14
 R08
Topic starter
(@r08)
Eminent Member
Joined: 7 years ago

Hi, I recently used the Duplicator plugin to migrate my site, and now the new site has a different url.  I was able to use the better Search and Replace plugin to replace all url in the database to the new url.  All the urls on posts and pages have changed, except for the url's in WPForo, they still point to the old url.  Can you suggest how I could change these?

1 Reply
Robert
Posts: 10503
Admin
(@robert)
Support Team
Joined: 8 years ago

Hi R08,

Firs you need to change Forum Base URL in Dashboard > Forums > Settings admin page, just click on the Update Options button and wpForo will update it.

If you want to change links located in posts content you should execute this SQL query:

UPDATE `wp_wpforo_posts` SET `body` = REPLACE (`body`, 'http://oldsite.com', 'http://newsite.com'); 

If the old site or the new site are under subDirectory you should include the subdirectory too:

UPDATE `wp_wpforo_posts` SET `body` = REPLACE (`body`, 'http://oldsite.com/wpsite1/', 'http://newsite.com'); 

or

UPDATE `wp_wpforo_posts` SET `body` = REPLACE (`body`, 'http://oldsite.com/', 'http://newsite.com/wpsite2/'); 

As you can see, this should be Wordpress installation URL, not just a domain.

IMPORTANT:

Please backup wp_wpforo_posts table before this manipulation.

If your database table prefix is not wp_ , please change it in SQL query.