AI Assistant
Notifications
Clear all

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

2 Posts
2 Users
0 Reactions
5,419 Views
Posts: 14
 R08
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@r08)
Eminent Member
Joined: 9 years ago
[#5245]

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: 10720
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@robert)
Support Team
Joined: 2 months 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.


Share: