XenForo Redirects for vBulletin

XenForo Redirects for vBulletin 1.1.9

No permission to download
Thank you very much Mike, it helps a lot.
Both approaches are live on my XF 1.5.9 forum. I was using VBSeo on my previous Vbulletin forum.
This upgrade from Vbulletin has been done 3 years ago by an external company that I can no more contact...
So I need to do retro-engineering about what they did and I will manage the upgrade to XF 2.1 by myself.
I will try what you explained on a dev environment.
Thanks
David
 
Ouah... retro engineering is much more complicated than what I was expecting.
The external company did specific things in order to make work all the redirects coming from my Vbulletin SEOVB add-on :

There are dedicated files for that :
- In ROOT folder :
192416
- In ROOT/FORUM/ :
192415

My upgrade to XF 2.1 will be a nightmare due to this... :-(

I think that I will not find support for this in the forum, can you confirm that Mike?
If you confirm, is it possible to discuss in PM about advices around that?
Maybe you know good guys who could work for hire about that for me?

Thanks

David
 
I don't know exactly what those redirects are doing or how they're implemented. If they redirect to "expected" URLs and they're independent of XF, then they may still work (as this add-on or internal XF redirects may do the work).

But potentially, the specifics of that don't really fit in this particular thread. Feel free to send me a PM (though I can't promise that I can definitively help).
 
i have imported my vb5 forum (webcampista.com) to a xenforo 2 test forum (prueba.webcampista.com).

i have installed the add-on and the url redirections is not working fine.

urls that not contains accents are redirected fine, example:
original url : https://prueba.webcampista.com/foro...pista/26192-cuantos-tenemos-remolques-tiendas is redirected to http://prueba.webcampista.com/foro/threads/cuantos-tenemos-remolques-tiendas.26192/

but if the url contains an accent the redirection fails , example
original: https://prueba.webcampista.com/foro/forum/general/foro-campista/4060867-nueva-versión-de-webcampista
redirected to : http://prueba.webcampista.com/foro/forums/foro-campista.27/
must be redirected to : http://prueba.webcampista.com/foro/threads/nueva-versión-de-webcampista.4060867/
 
Last edited:
Sorry, I started looking at this, though I haven't identified if there are other side effects yet. Try this change. In src/addons/XF301VB/Mvc/Router.php, change:
Code:
else if (preg_match('/^(?P<content_id>\d+)(?:-[a-z0-9-]+)?(?:\?|$)/i', $part, $match))
to:
Code:
else if (preg_match('/^(?P<content_id>\d+)(?:-[%a-z0-9-]+)?(?:\?|$)/i', $part, $match))

(It's adding a %.)
 
what happen with the urls vb4 style ?

before change from to vb4 to vb5 there are a thread with (f.e.) this url : https://www.webcampista.com/foro/showthread.php?127999-Camping-landas

vb5 is capable to make the redirect of this url to a new url: https://www.webcampista.com/foro/fo.../110245-camping-landas?127999-Camping-landas=

Xenforo is capable to make the redirect of the vb5 url to http://prueba.webcampista.com/foro/index.php?threads/camping-landas.110245/

but it can´t make the redirection from the original vb4 url.

is seems logical because in the vb4 to vb5 change vbulletin have changed the "numbers for threads"(primitive explanation) so .... all the old url from "vb4 style" will be not accesible after the change to xenforo?

How I can change the embebed links in posts to make it accesible?
 
When the data is imported, we really only know of one ID for a thread -- in this case, it's likely 110245. I don't know where 127999 is coming from (or where it's stored), but as that's not the ID associated with the actual content, it's unlikely that we have a record for it or know how to handle that.

I presume it would require a custom set of redirections.
 
If you're already using those redirect scripts, you might find it easier to just carry on using the XF2 versions of those scripts. The files go in the same place and the configuration steps would be the same as now:
 
I've just migrated from vBulletin 4.2.x to XF 2.1
I've also changed the url from /forum/ to root.
I'm using nginx.

I've uploaded the files here to /forum/ and I'm not seeing a redirect to the root, I'm actually getting a 404.
I have the table set, and it's full. I changed the path within the files. I have edited the nginx rules to include the root, and /forum/.
Am I missing anything else?
 
If you go to /forum/index.php directly, what happens?

I suspect the Nginx config isn't hitting this file as expected. Can you show your Nginx config (the location blocks specifically)?
 
I turned off Canonical

Here is my nginx
Code:
location /forum/ {
  index index.php index.html index.htm;
  try_files $uri $uri/ /forum/index.php?$uri&$args;
  include /usr/local/nginx/conf/503include-only.conf;

  }
location / {
  index index.php index.html index.htm;
  try_files $uri $uri/ /index.php?$uri&$args;
  include /usr/local/nginx/conf/503include-only.conf;

  }
 location /install/data/ {
        internal;
        }

        location /install/templates/ {
        internal;
        }

        location /internal_data/ {
        internal;
        }

        location /library/ {
        internal;
        }

        location /src/ {
        internal;
        }
 
I've just migrated from vBulletin 4.2.x to XF 2.1
I've also changed the url from /forum/ to root.
I'm using nginx.

I've uploaded the files here to /forum/ and I'm not seeing a redirect to the root, I'm actually getting a 404.
I have the table set, and it's full. I changed the path within the files. I have edited the nginx rules to include the root, and /forum/.
Am I missing anything else?

I had the exact same problem, using Litespeed Webserver (setup to work similar to apache in terms of htaccess etc)...

The XF1 redirection addon worked fine, but the 2.x addon does not work at all.

Since my vBulletin URL scheme was simple .php files for links (i.e. forum.org/showthread.php?t=1000) and not full friendly URLs or anything, and the forums/thread/post IDs are identical to the XF forums/thread/post IDs, I coded a PHP script to do the redirection (basically by writing 10 lines of code inside showthread.php, showpost.php, forumdisplay.php, member.php etc etc etc) and it works perfectly.

I'm not entirely sure if the XF devs here would want me to post the script as a resource here, but I know I've seen a few people with a similar forum setup that are running into redirection problems that WOULD be solved by my script...
 
Top Bottom