Importing from phpbb into a new domain

videorecover

New member
Hi

Let's say I run a phpbb forum on oldforum.com url.

I would like to install xenforo on newforum.com url and import there all data from oldforum.com

The question is: if it is possible, what about old internal links on messages?
Example: message text is "I do recommend you to visit http://www.oldforum.com/viewtopic.php?f=1&t=1".

When this message is imported into xenforo, how can I update this kind of internal links to point to http://www.newforum.com/viewtopic.php?f=1&t=1 ?
 
If everything after the domain is the same then this can be done with a simple rewrite in nginx for example

Code:
return 301 http://yournewsite.tld/$1;

Otherwise, I'd imagine some sort of script or SQL query as replacement can do this too.
 
Top Bottom