I heard this can be done using mod redirect.. can anyone help me to make .htaccess to redirect old vb urls?
TIA
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.
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)
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)
come on guys.
Google would seriously punish our site for thousands of broken links...
can we get some help on this please ?
Is this issue solved or do you still require assistance?
Sorry for the wait by the way.
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 ?
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 ..
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
ok thanks.. please have a little patience, I'll check this ASAP..
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 .
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).
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
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..
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.
edit no longer needed
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
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]
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
changed upper post it must work.