NGINX redirects

Chris

Customer
Hi there -

I have a PHPBB site I migrated to XenForo - I need help with the redirects for Nginx - as I use Centminmod.

Is this a service you offer?


Thank you
Chris
 

Matt

Owner
Hi Chris,

It would depend on the existing URL structure you have in place. I've done redirects for phpBB before, where the ID's were kept the same during the conversion process, so it was just a case of extracting the ID's from the URLs and using that for the redirects.
 

Chris

Customer
Hi Matt - thanks for the follow up - here is a few sample urls:
https://domain.com/viewforum.php?f=4 ==> should go to /forums/4
https://domain.com/viewtopic.php?f=22&t=26702 => should go to threads/26702

I also see some url setups /viewtopic.php?t=&start= and viewtopic.php?f=&t=
Need to drop the start, and just keep the $1 or $2

I've kept the IDs during the process - I've found a few suggestions on XenForo.com but they don't seem to work for me. Could be where I'm placing them in the conf file blocks.
 

Matt

Owner
That should be pretty straight forward for the threads and forums. I always put the redirects above the first location block in the domains .conf file.
 
Top