XenForo Redirects for vBulletin

XenForo Redirects for vBulletin 1.1.9

No permission to download
We have no route filters.

I fear that if we disable friendly URLs, not only would things be less friendly, but current links might break.

I just went on my test board and added /forums to the end of the board URL & Home page URL, it's installed on the root. It does in fact work clicking around the board and it shows as /forums/ now, perhaps that's the issue? Check those inputs and see if you can remove /forums/ from it, if it exists there.
 
I just went on my test board and added /forums to the end of the board URL & Home page URL, it's installed on the root. It does in fact work clicking around the board and it shows as /forums/ now, perhaps that's the issue? Check those inputs and see if you can remove /forums/ from it, if it exists there.
Our board URL and home page URL are both the root domain already.
 
Doesn’t this add on come with rewrite rules to rewrite forums/showthread.php to the right file that came with the add on?
 
Doesn’t this add on come with rewrite rules to rewrite forums/showthread.php to the right file that came with the add on?
The manual says that if XenForo's URL path is the same as vB's, then there is nothing extra needed to make the addon work.
If they are not the same path, then there is extra work required where you create the directory structure and copy some files there so XenForo can pick up the requested path and process it.


In our case, the URL paths are the same (/forums/ for vB and /forums/ for XenForo) but the actual web root directory paths are not the same (the vBulletin instance did use a /forums/ directory whereas XenForo does not and that path is routed internally). I don't know if this distinction matters. If I try to add a /forums/ directory, that causes native XenForo URLs to break (the site essentially becomes unusable and returns 404s everywhere), likely due to the way nginx handles try_files.

At any rate, the addon does not appear to be able to redirect any URLs regardless of the form in which they are used. I just have no troubleshooting leads to go on as to what is wrong to even guess at how to fix it. The addon is supposed to be plug and play.

We had URL redirection working back on XenForo 1. I don't remember any details of that setup but I know it was totally different.
 
Last edited:
I'm using this for MyBB, just wondering how this can be modified for profiles. MyBB profile link: member.php?action=profile&uid=##
 
My 5 cent. The next pages are not redirected with "XenForo Redirects for vBulletin 1.1.9":

forum.com/forumdisplay.php?f=154&order=desc&page=2 - follow to the first page (forum.com/forums/154/) instead of the 2nd. The problem with the order=desc& path

forum.com/showthread.php?s=997010a2c22af75930bdca86271076bd&goto=newpost&t=10935 - "The requested page could not be found" instead of a new post. The problem with the goto=newpost& path

forum.com/showthread.php?goto=newpost&t=12200 - "The requested page could not be found" instead of a new post. The problem with the goto=newpost& path

forum.com/misc.php?do=whoposted&t=12200 - "The requested page could not be found" instead of the list "Who Posted?"

The rest is redirecting fine. Looking forward to the new "XenForo Redirects for vBulletin" release!
 
I have a forum with over 360,000 members and struggled with redirects - here's how I got it all working

vBulletin 4.2.5 ported to XenFORO 2.2.9 (Apache and MariaDB)

Old vb Forum: https://www.domain.com/forums
New xf Forum: https://forums.domain.com

After the import was completed, I added the Redirect Plugin 1.1.9

Followed the instructions to the T and no redirects would work and the source forums page was a mess of unformatted CSS.

After much reading I found the solution. First these settings in Basic Options:

1656449539355.webp

And this is the exact .htaccess used:

Code:
ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 405 default
ErrorDocument 406 default
ErrorDocument 500 default
ErrorDocument 501 default
ErrorDocument 503 default

<IfModule mod_rewrite.c>
    RewriteEngine On
    
    RewriteRule ^threads/([^/.]+\.[0-9]+.*)$ https://forums.domain.com/threads/$1 [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]
</IfModule>

Hope this helps someone (y)
 
I lost file "import_log_vbulletin_1"
please help me

That's built when your vBulletin's converted to XF, you lost the table? You have no backups? There's nothing anyone can really do to help you. If you still have a copy of your vBulletin, you can try converting it again to a new XF, do it the exact same way, if you retained thread IDs and etc before, do the same again.

Then export a copy of it from the new XF's DB, and import it to your live site's DB.

Otherwise, I don't see a solution to this, at all.
 
Any Solution for this case?

old vb link post:

https://www.mysite.net/vb/showthread.php?t=24727

New XF link

https://www.mysite.net/vb/threads/24727

I use this but not working

RewriteRule ^threads/([^/.]+\.[0-9]+.*)$ https://www.mysite.net/vb/threads/$1 [R=301,L]

Thank Advance for any help
 
Last edited:
I have a forum with over 360,000 members and struggled with redirects - here's how I got it all working

vBulletin 4.2.5 ported to XenFORO 2.2.9 (Apache and MariaDB)

Old vb Forum: https://www.domain.com/forums
New xf Forum: https://forums.domain.com

After the import was completed, I added the Redirect Plugin 1.1.9

Followed the instructions to the T and no redirects would work and the source forums page was a mess of unformatted CSS.

After much reading I found the solution. First these settings in Basic Options:

View attachment 270258

And this is the exact .htaccess used:

Code:
ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 405 default
ErrorDocument 406 default
ErrorDocument 500 default
ErrorDocument 501 default
ErrorDocument 503 default

<IfModule mod_rewrite.c>
    RewriteEngine On
   
    RewriteRule ^threads/([^/.]+\.[0-9]+.*)$ https://forums.domain.com/threads/$1 [R=301,L]
   
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]
</IfModule>

Hope this helps someone (y)
Why would this rule be needed?

RewriteRule ^threads/([^/.]+\.[0-9]+.*)$ https://forums.domain.com/threads/$1 [R=301,L]

Doesn't the add-on take care of everything natively?
 
Hi.

We have just completed our migration over from vBulletin 4.2.5 to Xenforo 2.2.12 and have followed the steps to have redirects in place to redirect from our old vB location which was at www.domain.com/forums to our new XF location which is at www.domain.com/community.


However, when visiting the old vB location, we are presented with the following error:
PHP:
Parse error: syntax error, unexpected ':', expecting ';' or '{' in XF.php on line 351


Any ideas what's going on here?
 
Hi.

We have just completed our migration over from vBulletin 4.2.5 to Xenforo 2.2.12 and have followed the steps to have redirects in place to redirect from our old vB location which was at www.domain.com/forums to our new XF location which is at www.domain.com/community.


However, when visiting the old vB location, we are presented with the following error:
PHP:
Parse error: syntax error, unexpected ':', expecting ';' or '{' in XF.php on line 351


Any ideas what's going on here?
I managed to fix this issue by upgrading the PHP version that was serving our old vB content. Now visiting www.domain.com/forums correctly redirects to www.domain.com/community


However, we have now encountered another issue in that if we visit a link to a specific forum or thread under the old vB system it does not redirect to the relevant link under the new XF system, it just loads the old vB content.
How do we fix this?
 
I managed to fix this issue by upgrading the PHP version that was serving our old vB content. Now visiting www.domain.com/forums correctly redirects to www.domain.com/community


However, we have now encountered another issue in that if we visit a link to a specific forum or thread under the old vB system it does not redirect to the relevant link under the new XF system, it just loads the old vB content.
How do we fix this?
That’s not how the redirects work.

It’ll redirects old vbulletin links to the XenForo format, and it does this by utilizing the vbulletin log table it should have generated in your database.

It does not redirect an entire active VB board over to the XenForo board from two different folders/URL.
 
That’s not how the redirects work.

It’ll redirects old vbulletin links to the XenForo format, and it does this by utilizing the vbulletin log table it should have generated in your database.

It does not redirect an entire active VB board over to the XenForo board from two different folders/URL.
I understand this, but when I visit an old vBulletin link, it does not redirect it to the XenForo format, it just simply opens the link, lets say a specific thread, in the old vB installation.

My understanding was that if someone hits a vB link to an old thread it should be redirected to the same thread under the XenForo system?
 
Top Bottom