Quick and dirty solution to redirect my migrated UBB forum Topics/Forums/Users URLs to NodeBB ids. it can be used to anything other target forum, doesn't have to be NodeBB, but the source forum must be UBB.
You must create/generate a map of the source topics/forums/users ids, each will map to either ids or slugs of the target forum software you will be using. If you decide to migrate to NodeBB, use the migrator linked below, which will make that easy for you, otherwise, I'll let you figure that out, but your map must look like the map.sample.json in structure. Look at the source if you're curious, it's not as bad as you think.
npm install ubb-redirectorcd node_modules/ubb-redirector# or you can clone it directly from heregit clonecd ubb-director# install dependenciesnpm install# I would use 'forever' or 'supervisor' to keep it runningsudo npm install -g foreverforever -o out.log ubbredirector.js --map="map.sample.json" --port=3000 --host=127.0.0.1 --verbose# or simply, for a quick demo, and it will default to values used one line above. minus the -v flag :)node ubbredirector.js -v
see nginx.example.com to view an example on the setup I needed, basically the old UBB forum lived under example.com/forums, so I have a location /forums directive in nginx to handle all request into that, which just proxies the requests to ubb-redirector for it to handle the logic