XenForo Redirects for vBulletin

XenForo Redirects for vBulletin 1.1.9

No permission to download
Is anyone using this addon successfully with nginx? What's your config? Looks to me like the requests ending in ".php" will directly go to the php fcgi block and thus cause 404s because the script file doesn't exist.
 
I assume this would not help with DBSEO URLs?
I am working on a script similar to this one that will import the DBSEO URL structure configuration from the vB database, and redirect the SEO URLs back to the native vB URLs, which then may or may not be picked up by this script.

My script will be free and 100% unmaintained / unsupported. I plan to make sure it works for us @ DBTech, but I do not intend to provide support for it. If it won't work for some people with specific charsets or configurations, -shrugs- :P

Furthermore, there will be some severe restrictions on certain URL formats; if you did not use forum ID in forum URLs, or user IDs in member profile URLs (etc), this script will not work for those URL formats and there will not be any attempts to support those URLs formats. Those URL formats were bad and anyone using them should feel bad for using them.
Support for those URLs would require a lookup table of SEO'd forum titles -> old forum IDs (and user names to user IDs, etc), which is a mountain of work I absolutely cannot be bothered to do since it doesn't apply to our site.

There will also not be any support for attachment URLs, as me from 2013 decided that instead of separating attachment ID and attachment dateline (which vB attachments require in the URL, for some reason) into separate variables, it should be merged into one and split during runtime with regular expressions. I certainly can't be bothered to account for that.

I've also cut some random URL formats for various reasons, I can't remember most of them but the "Nav Bullet" being one, and avatar URLs being another. I don't think anyone would ever miss them but there you go.


Fillip
 
This will be a bit of a problem if your vbulletin installation was in /forums/ as it causes issues if you create that folder.

(One of my sites was in the /forums/ subdirectory, subsequently moved to root)

This is my current situation. Creating the /forums/ folder broke XF. :\

EDIT: Moved the new forums to a subfolder to correct the issue.

Jeff
 
Last edited:
@Kier How come this product doesn't use XFCP? The XF301VB\Mvc\Router class inherits directly from \XF\Mvc\Router. It probably won't matter that much since execution order is 1, but if another mod adds its order as 1 as well and somehow runs first, it could still be an issue.

I only noticed it because of the add-on I'm working on as detailed above, looked at this script for how to hook into the route handling.


Fillip
 
I just converted a forum and while it worked for the main folder, directing the old vBulletin's main folder to the new XenForo 2 folder - if I visit URLs presently in Google, it still brings me to the old vBulletin installation.

For example:
https://genesisowners.com/hyundai-genesis-forum/showthread.php?22206-Genesis-G70-update

...should be redirecting to:
https://genesisowners.com/genesis-forum/threads/genesis-g70-update.22206/

Any way to fix that? I just put a redirect script in the vBulletin headinclude so it brings the viewer to the front page of the forum for now. I know that's probably not good - but I'd like to get my members posting on the new forum...
 
...I just setup a 404 redirect to go to the new forum home and I renamed the folder where the old vBulletin installation was. If anyone would like to share some proper redirect advice, please do.
 
...I just setup a 404 redirect to go to the new forum home and I renamed the folder where the old vBulletin installation was. If anyone would like to share some proper redirect advice, please do.

A 404 isn't a redirect, it basically tells robots to go politely away.

My advice would be 301 redirect for everything from the old directory to the new and this addon for the vbulletin to xenforo redirects.

But I wonder why you are using a different URL/folder anyway????
 
A 404 isn't a redirect, it basically tells robots to go politely away.

My advice would be 301 redirect for everything from the old directory to the new and this addon for the vbulletin to xenforo redirects.

But I wonder why you are using a different URL/folder anyway????
I don't think it would have made any difference if I used the old folder or not. But I wanted to get "hyundai" out of the url structure. Can you help me with the 301 redirects from the vB4 URLs to XenForo?
 
The URLs aren't all that different.
https://genesisowners.com/hyundai-genesis-forum/showthread.php?22206-Genesis-G70-update
https://genesisowners.com/genesis-forum/threads/genesis-g70-update.22206/

I need an htaccess command that'll change hyundai-genesis-forum to genesis-forum and then showthread.php?NUMBERS-THREAD-TITLE to threads/THREAD-TITLE.NUMBERS

It sounds like it should be easy, really - but I don't know...

All taken care of. I received help here:
https://theadminzone.com/threads/ju...-xf2-could-use-some-help.147343/#post-1117555
 
Last edited:
The URLs aren't all that different.
https://genesisowners.com/hyundai-genesis-forum/showthread.php?22206-Genesis-G70-update
https://genesisowners.com/genesis-forum/threads/genesis-g70-update.22206/

I need an htaccess command that'll change hyundai-genesis-forum to genesis-forum and then showthread.php?NUMBERS-THREAD-TITLE to threads/THREAD-TITLE.NUMBERS

It sounds like it should be easy, really - but I don't know...

All taken care of. I received help here:
https://theadminzone.com/threads/ju...-xf2-could-use-some-help.147343/#post-1117555

Glad you got it sorted, it's basically exactly what I said above. Do the different subdirectoryn URL redirects and then the vbulletin to xenforo redirect.
 
Last edited:
Forum updated to 2.0.4, addon to 1.1.1. Option is populated with table name. Sadly we're still getting "404 Not Found" when old vBulletin4 url is used.

Old URL: https://<fqdn>/showthread.php/17359-threadtitle
New URL: https://<fqdn>/threads/threadtitle.17359/

Our host server runs nginx 1.12.2 ... Did anyone figured out what is missing to make it work?

Thank you in advance!
 
The instructions mention this:

After you have completed your vBulletin import, you will probably want to have any URLs pointing to your original vBulletin installation automatically redirect to their corresponding XenForo URL.


This can be done with minimal effort, using the XenForo redirects for vBulletin add-on, which started shipping with XenForo from version 2.0.2.

But I am not seeing this addon included in the xenforo download, has it stopped being included?
 
Top Bottom