Resource icon

Redirection Scripts for vBulletin 3.x 8.0

No permission to download
Are you sure you didn't choose to archive it? Generally speaking, you should have that data unless you either manually removed it or started another import and chose to throw the data away.
 
Thank you again.
I found the archived one, but why i should need it.
Inside i found two fields with always the same value:

22|22
33|33
345|345

So it would be nonsense to ask for the id x i can find with the id x.

Maybe this script is only for these people who made new ids during the import?
Maybe i just need more regex inside the htaccess?

I made some for t=, thread=, p= for showthread and showpost and forumdisplay also.
But somehow i have the bad feeling that google has killed us at all after i swiched of the old vb for some days.
 
You only have realy ALL Ids the same, when you import a vBulletin forum who never ever a thread or post was deleted bevore. I import two vBs and with both I have a lot same IDs but also many not equal IDs.

So, you realy have ALL IDs the same?
 
If the IDs were retained then it's correct you don't need the script - you can just use rewrite rules in .htaccess.
 
I am about to move my site from http to https, will that have any effect on these redirection scripts? Thanks.
 
I am about to move my site from http to https, will that have any effect on these redirection scripts? Thanks.

No. Just make sure to update your board URL which is used by these scripts:

Admin CP -> Home -> Options -> Basic Board Information -> Board URL
 
This doesn't work for content tags, which is pretty vital for URL redirection.
Please consider to fix this.
 
Hi,

Actually, i have this:
- vBulletin 3.8 in /public_html/forum/
- XenForo 1.5.12 in /public_html/xf/

I rename forum to forum_old (vB) and xf to forum, so forum become the default forum (With a migrated xenforo installation)

It's correct ?

So I have to put the redirect files in the old folder where vBulletin is located, in my case it's forum_old

If this is correct, should I still keep the forum_old folder where is the old installation of vBulletin, even after the migration?
 
Last edited:
So I have to put the redirect files in the old folder where vBulletin is located, in my case it's forum_old
No, the files need to go in whatever position is needed to correspond to the old URLs. Since your old directory was called "forum" and your new directory is also called "forum", you need to put the scripts in the new directory (what's now your XF directory).

You don't need to keep the old files for the redirects.
 
No, the files need to go in whatever position is needed to correspond to the old URLs. Since your old directory was called "forum" and your new directory is also called "forum", you need to put the scripts in the new directory (what's now your XF directory).

You don't need to keep the old files for the redirects.
Thank you Mike ;)
 
No, the files need to go in whatever position is needed to correspond to the old URLs. Since your old directory was called "forum" and your new directory is also called "forum", you need to put the scripts in the new directory (what's now your XF directory).

You don't need to keep the old files for the redirects.
After test, it don't work.

Example:
Old url -> http://www.my_domaine.com/forums/thread27.html
New url -> http://www.my_domaine.com/forums/index.php?threads/les-crédits.27/

If i test with http://www.my_domaine.com/forums/thread27.html , I get this error:

Screenshot_111.webp
 
The URL you're trying to redirect from isn't a "standard" URL, which is what these redirects cover. If you previously used something that rewrote the URLs, you would need to add rewrites to either turn those to the "standard" URLs or, if IDs have been maintained, to redirect them to the standard XF URLs.
 
The URL you're trying to redirect from isn't a "standard" URL, which is what these redirects cover. If you previously used something that rewrote the URLs, you would need to add rewrites to either turn those to the "standard" URLs or, if IDs have been maintained, to redirect them to the standard XF URLs.
I use Full Friendly URLs and IDs have been maintained

Old url -> http://www.my_domaine.com/forums/thread27.html
With friendly urls -> http://www.my_domain.com/forums/threads/les-crédits.27/

What is the redirect to add please ?
 
Last edited:
I have a question about this redirect script. My forum uses route filters to replace "threads" with "topics".
The script works just perfect, but it rewrites the URL to 'threads', and then redirect to 'topics'.
This is no problem but I am trying to reduce the number of redirects:

https://example.com/forum/showthread.php?t=43197
https://example.com/threads/82645/
https://example.com/topics/82645/

What should be changed in the script to jump right to 'topics' instead of 'threads'?
Code:
 $target = XenForo_Link::buildPublicLink('canonical:threads', $data, $extraParams);
 
Top Bottom