XenForo Redirects for vBulletin

XenForo Redirects for vBulletin 1.1.9

No permission to download

Dragonfruit

Well-known member
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.
 

Ghan_04

Active member
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.
 

Rasmus Vind

Well-known member
Doesn’t this add on come with rewrite rules to rewrite forums/showthread.php to the right file that came with the add on?
 

Ghan_04

Active member
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:

Dragonfruit

Well-known member
I'm using this for MyBB, just wondering how this can be modified for profiles. MyBB profile link: member.php?action=profile&uid=##
 

Dianin

New member
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!
 

RaptorDF

New member
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.png

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)
 

Dragonfruit

Well-known member
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.
 
Top