david.steadson
Member
yup.
but I'm not even sure how it can work in theory?
For example, this URL - /forums/forumdisplay.php?f=21
There is no "forumdisplay.php" file, and no rewrites or redirects are configured anywhere in the server setup?![]()
That requires the server to be rewriting URLs. Nothing in the vb_importer installation does this. Rereading the importer notes again, under the section where additional steps are needed if you're installed a different location it mentions additional configuration if you're not using Apache (I'm using nginx). I'm guessing those additional steps are necessary even if you are at the same location, otherwise there's no URL rewriting going on, and checking the file structure no vb "replacement" files have been installed by the importer, so it must rely on rewrites.I thought it's written into this plugin and it uses the 'vBulletin import log table' as a map.
On ours for example, if we inputted the URL: domain/forumdisplay.php?f=1
It automatically changes into: domain/index.php?forums/1/
That requires the server to be rewriting URLs. Nothing in the vb_importer installation does this. Rereading the importer notes again, under the section where additional steps are needed if you're installed a different location it mentions additional configuration if you're not using Apache (I'm using nginx). I'm guessing those additional steps are necessary even if you are at the same location, otherwise there's no URL rewriting going on, and checking the file structure no vb "replacement" files have been installed by the importer, so it must rely on rewrites.
map $args $xf_id {
~^(\d+)-(.+)$ $2.$1;
}
location = /forums/member.php {
return 301 /members/$xf_id/;
}
location = /forums/showthread.php {
return 301 /threads/$xf_id/;
}
}
location = /forums/forumdisplay.php {
return 301 /forums/$xf_id/;
}
Hi, I recently migrated a VB5.3 forum to Xenforo (latest build). I used the installed redirect add on and have about 10 legacy forum links that did not gracefully survive the redirect install. How can I manually push these 301's with the add-on? What table or location should I add them? The content moved over, just the translation with the table didn't work. No problem to manually add, but if I do from the Cpanel redirect side, it's secondary to the Add on and is going to a "not allowed to view this page" link vice the desired one. Help ticket said can't help come here. Any assistance is appreciated. Majority of the redirects are fine. I just have some 5-10 year old ones I want to preserve with the 301's. Thanks much.XenForo submitted a new resource:
XenForo Redirects for vBulletin - Seamless redirection for any vBulletin URLs to imported XenForo content
Read more about this resource...
--- a/src/addons/XF301VB/Mvc/Router.php
+++ b/src/addons/XF301VB/Mvc/Router.php
@@ -79,7 +79,7 @@ class Router extends XFCP_Router
'entries' => 'blogEntry',
];
- public function routeToController($path, Request $request = null)
+ public function routeToController($path, ?Request $request = null)
{
// if $request is null, we're probably just testing a link
if ($request === null)
All migrations from any other platform (AFAIK) will need redirects in place unless you edit all the internal links manually. Even then you need it for inbound external links unless you can getb those changed.this have to be done to retain functionality in an already migrated forum? or only for a new migration?
Thanks for the response. I made the edit to the htaccess file but did not rename it and place it in the home directory. All seems well now!Did you put in the correct htaccess from your Xenforo files?
Did you also match the domain and folders, for example if you used the root folder, so it was just “myforum.com/index.php”
You must keep that the same, if you added a sub folder like /community/, that may be the issue. It’s changeable but requires more work.
And finally, do you have friendly URLs turned on? Maybe test with that off.
I’m not 100% sure on it, but since you didn’t get any other replies yet I’m just trying to help by pointing some things to look at. I hope it helps.
We use essential cookies to make this site work, and optional cookies to enhance your experience.