The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
404 / 301 after import redirect on import ids Details »» | |||||||||||||||||||||||||||
404 / 301 after import redirect on import ids
Developer Last Online: Oct 2010
After importing from a source board there will be internal and external links that point to the old URLS.
During the import the origional import id's are kept (for one import) so a redirect can be calculated to find the new user/forum/thread/post, by looking up the old import{$type}id. ImpEx currently alters the table to add the import id, though a planned future version will have this separated so multi-import sites can be managed, The original discussion thread on vBulletin.com : http://www.vbulletin.com/forum/showthread.php?t=178161 It is advised that $do_404 = false; is set so the 301 is sent with the new URL to update search engines. The script needs setting up and customising to each site as the domains and URLs can be different. Show Your Support
|
Comments |
#12
|
|||
|
|||
Anyone have any ideas?
|
#13
|
||||
|
||||
Jerry,
I am planning to install this for my bbV2 migration. I presume there is no reason to keep all the code for the other message board combinations with the conditionals, switches and so forth. I can just hard code it for the bbV2 url forms. bbV2 does not support displaying posts independently of threads, and does not support displaying user profiles externally. I was planning to just provide the translation of thread and forum references. Since bbV2 is a Perl script, the form of the urls are /bbBoard.cgi?a=viewthread;fid=3;gtid=305734 for a thread and bbBoard.cgi?a=viewforum;fid=3 for a forum. I could use your logic for the forum, but I will need to use a regular expression to skip the fid piece for threads. When Jelsoft installed of vBulletin, they installed it in the root of the web (/var/www/html/) so there is no folder for the message board. I will need to modify the code to recognize this also. When I have it working, I will post it here. If you have any advice to offer, it would be appreciated. |
#14
|
||||
|
||||
Nice!!!
|
#15
|
||||
|
||||
As mentioned in my previous response, I was modifying this tool to work with a bbBoardV2 migration.
A question comes up with respect to migrating between two different servers. The old server is still alive and clearly this script needs to run on the new server where vBulletin is located. If I put a redirect on the old board in place of the bbBoard.cgi script, I think that will handle it, but I am not sure. Can anyone who has done this answer the question? My old board is currently live and I don't want to disrupt it just for an experiment. I am attaching my modified version of 404.php (404t.php). The contents of my .htaccess file are Code:
ErrorDocument 404 /var/www/html/404t.php php_flag log_errors on php_value error_log /var/www/html/php_error.log |
#16
|
|||||
|
|||||
Quote:
PHP Code:
Quote:
Quote:
Quote:
PHP Code:
PHP Code:
PHP Code:
Quote:
|
#17
|
||||
|
||||
|
#18
|
||||
|
||||
Thanks Jerry,
I think I have it now. I may not have easy control of the DNS. I will need to check it for a short time and switch it back. If this were one of my personal sites that is for sure what I would do. Now if I could just get a response to my cleaner questions on the vbulletin.com community forum I would be good to go. |
#19
|
|||
|
|||
Jerry,
Thanks for your response. I think everything is correct and like I said, everything except the profile links work with no problem. Here is the top half of my 404.php. Code:
#Currently supported : 'phpBB2' 'ubb.threads' 'vb3' 'ipb2' $old_system = 'phpBB2'; // Domain // Example :: http://www.example.com/phpBB/ $old_folder = 'phpbb2/'; // With trailing slash $old_ext_type = '.php'; // Including preceding dot $standard_404 = 'http://www.thenewx.org/404.htm'; // The usual 404 that this script replaces // Example :: www.example.com/vBulletin/ $new_domain = 'www.thenewx.org'; $new_folder = 'forum/'; // With trailing slash $ext_type = '.php'; // File extension type that vBulletin is using, i.e. index.php including the preceding dot |
#20
|
||||
|
||||
Have you set up the logging table in MySQL ? Does it have any entries for the profiles ?
|
#21
|
|||
|
|||
I do have a logging table. It however does not have any entries for user profiles. There are a lot of ViewTopic requests and some 404 redirects (since the old phpbb directory does not exist).
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|