Simple Machines Community Forum

SMF Support => Converting to SMF => vBulletin => Topic started by: dinodonk on June 17, 2008, 01:13:15 PM

Title: how to redirect old vb urls to new ones?
Post by: dinodonk on June 17, 2008, 01:13:15 PM
I heard this can be done using mod redirect.. can anyone help me to make .htaccess to redirect old vb urls?

TIA
Title: Re: how to redirect old vb urls to new ones?
Post by: ThorstenE on June 17, 2008, 01:56:14 PM
don't know the exact syntax for VBs URLs but it should be possible.

Example for phpBB  (http://www.simplemachines.org/community/index.php?topic=233477.msg1503501#msg1503501) may help you.
Title: Re: how to redirect old vb urls to new ones?
Post by: Sarge on July 05, 2008, 05:46:04 AM
Hello there, have you managed to find a solution?

This may also help: [htaccess redirect] old phpbb url > new smf url (http://www.simplemachines.org/community/index.php?topic=170959.0)

Title: Re: how to redirect old vb urls to new ones?
Post by: Sincere on November 14, 2009, 11:41:40 AM
thank you TE and Sarge.

but is really the smf community unable to write a proper .htaccess file ?

this topic has been Read 3474 times. Is this an indication to anyone in the dev team?

at least let us write a few rules to simply redirect links to topics and messages (threads and posts)

Title: Re: how to redirect old vb urls to new ones?
Post by: Sincere on November 14, 2009, 02:05:31 PM
come on guys.

Google would seriously punish our site for thousands of broken links...

Title: Re: how to redirect old vb urls to new ones?
Post by: Sincere on November 19, 2009, 02:17:10 PM
can we get some help on this please ?
Title: Re: how to redirect old vb urls to new ones?
Post by: Kill Em All on February 15, 2010, 04:57:47 PM
Is this issue solved or do you still require assistance?

Sorry for the wait by the way.
Title: Re: how to redirect old vb urls to new ones?
Post by: Sincere on February 15, 2010, 11:40:10 PM
Quote from: Kill Em All on February 15, 2010, 04:57:47 PM
Is this issue solved or do you still require assistance?

Sorry for the wait by the way.

no , it is not solved.

can you help ?

Title: Re: how to redirect old vb urls to new ones?
Post by: ThorstenE on February 21, 2010, 02:50:08 AM
Sincere, can you post some examples for old vBulletin ULRs? I believe we can fix it but I don't know how the old URLs look ..
Title: Re: how to redirect old vb urls to new ones?
Post by: Sincere on February 21, 2010, 04:53:55 AM
Quote from: TE on February 21, 2010, 02:50:08 AM
Sincere, can you post some examples for old vBulletin ULRs? I believe we can fix it but I don't know how the old URLs look ..

hello TE

here are a few examples:

link to topic

http://yourdomain.com/vb/showthread.php?t=100210146

or  with parameters

http://yourdomain.com/vb/showthread.php?goto=newpost&t=100210557


link to post


http://yourdomain.com/vb/showpost.php?p=1060988333&postcount=1

or

http://yourdomain.com/vb/showthread.php?p=1060990256#post1060990256

link to user profile

http://yourdomain.com/vb/member.php?u=387925


link to a forum

http://yourdomain.com/vb/forumdisplay.php?s=&daysprune=&f=330


or

http://yourdomain.com/vb/forumdisplay.php?f=324



Title: Re: how to redirect old vb urls to new ones?
Post by: ThorstenE on February 21, 2010, 11:59:56 AM
ok thanks.. please have a little patience, I'll check this ASAP..
Title: Re: how to redirect old vb urls to new ones?
Post by: Sincere on February 22, 2010, 05:27:50 PM
Quote from: TE on February 21, 2010, 11:59:56 AM
ok thanks.. please have a little patience, I'll check this ASAP..

no problem. I am waiting. please let me know .
Title: Re: how to redirect old vb urls to new ones?
Post by: ThorstenE on February 23, 2010, 12:07:44 PM
I've checked it and it's impossible via .htaccess only. At least for the messages we need to make a database query for the topic id (see below).

Attached is a set of php files (names are the same as the former vbulletin files). These files will redirect old URLs to the new forum URL. You have to edit the config.php and add your SMF forum location.

I'll also write the missing showpost.php but I need to know the SMF version. Direct URLs to messages aren't supported by SMF, we need at least the topic id from the SMF database (column names are different in SMF 1.1.x and SMF 2.0, therefore I need your SMF version number).

Title: Re: how to redirect old vb urls to new ones?
Post by: Sincere on February 23, 2010, 03:11:50 PM
Quote from: TE on February 23, 2010, 12:07:44 PM
I've checked it and it's impossible via .htaccess only. At least for the messages we need to make a database query for the topic id (see below).

Attached is a set of php files (names are the same as the former vbulletin files). These files will redirect old URLs to the new forum URL. You have to edit the config.php and add your SMF forum location.

I'll also write the missing showpost.php but I need to know the SMF version. Direct URLs to messages aren't supported by SMF, we need at least the topic id from the SMF database (column names are different in SMF 1.1.x and SMF 2.0, therefore I need your SMF version number).

thank you. it is smf1.1.11
Title: Re: how to redirect old vb urls to new ones?
Post by: ThorstenE on March 03, 2010, 02:16:10 PM
sorry for my late reply (have been busy with reallife stuff).. simply download the vbr.zip attachment, unzip that file and edit config.php with a text-editor.. then upload all files to your former vbulletin folder..
Title: Re: how to redirect old vb urls to new ones?
Post by: Sincere on March 03, 2010, 06:57:50 PM
Quote from: TE on March 03, 2010, 02:16:10 PM
sorry for my late reply (have been busy with reallife stuff).. simply download the vbr.zip attachment, unzip that file and edit config.php with a text-editor.. then upload all files to your former vbulletin folder..

thank you very much.
I definitely would need this package when converting my other forums.
Title: Re: how to redirect old vb urls to new ones?
Post by: Antes on April 15, 2010, 08:40:56 AM
edit no longer needed
Title: Re: how to redirect old vb urls to new ones?
Post by: alimrb on April 05, 2011, 12:38:13 PM
VB v4.1.2

URL Sample
hxxps://xxxxx.com/forums/showthread.php?14301

How can i change the .htaccess to get this:

hxxps://xxxxx.com/forums/index.php?topic=14301
Title: Re: how to redirect old vb urls to new ones?
Post by: Antes on April 05, 2011, 12:47:19 PM
RewriteEngine on
RewriteRule ^showthread.php?=([0-9]*) index.php?topic=$1 [R=301,L]
RewriteRule ^forumdisplay.php?=([0-9]*) index.php?board=$1 [R=301,L]
Title: Re: how to redirect old vb urls to new ones?
Post by: alimrb on April 05, 2011, 12:55:32 PM
there is not "t=" :

hxxps://xxxxx.com/forums/showthread.php?14301

and with:
RewriteRule ^showthread.php?([0-9]*) index.php?topic=$1 [R=301,L]

i get:

hxxps://xxxxx.com/index.php?topic=

not:
/index.php?topic=14301
Title: Re: how to redirect old vb urls to new ones?
Post by: Antes on April 05, 2011, 04:12:32 PM
changed upper post it must work.