Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
404 / 301 after import redirect on import ids Details »»
404 / 301 after import redirect on import ids
Version: 1.00, by Jerry Jerry is offline
Developer Last Online: Oct 2010 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.9 Rating:
Released: 04-22-2008 Last Update: Never Installs: 52
Re-useable Code  
No support by the author.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #82  
Old 10-25-2011, 08:51 PM
tommythejoat's Avatar
tommythejoat tommythejoat is offline
 
Join Date: Apr 2008
Location: Boston
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The Impex program re-indexes all the threads it imports. It does not really care what the source forum product was. The old index is save in a column with threads, posts, profiles, etc. for each item that was imported.

For any given solution, you do not need all the generality that is in the 404 trap. You just need to know where to find the old threadid in the url that has been trapped because the target was not found.

That threadid is then used to look up the new threadid in the vBulletin database and the new threadid is used to compose a URL for the imported thread.

It is not just Google that needs this help. All the internal references to other threads, images, etc. on your old message board still reference the old url's also. Unless you write a query to edit all of those references to current correct thread references, they will be handled by the 404 trap also.

On my board, I removed the translation id's from the content tables and put them into their own table. I also created a log table that keeps track of the translations so I could see what the traffic was and when some references were not trapped properly.

Since vBsolutions wrote the original code, I don't think I am free to post it here.
Reply With Quote
  #83  
Old 05-21-2012, 02:50 PM
thecoo1est thecoo1est is offline
 
Join Date: May 2012
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this also work with 4.1.12? I just purchased vb today and I really want to figure everything out before I convert from smf to vbulletin, thanks.
Reply With Quote
  #84  
Old 11-03-2012, 03:46 PM
BasilFawlty BasilFawlty is offline
 
Join Date: Jul 2012
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am running UBB.Threads, but using "Search Engine Friendly" URLs. Is it possible to modify this script to properly parse threads, forums, profiles when my URLs for each look like this:

forum:
http://www.example.com/forum/ubbthre.../introductions

thread (with unread posts):

http://www.example.com/forum/ubbthre...ed_help#UNREAD

OR (if its a thread that has no unread posts):

http://www.example.com/forum/ubbthre...elp#Post878325

User Profile:

http://www.example.com/forum/ubbthre...9/fredschmertz

I'm getting ready to move a UBB.Treads forum that I've ran for 12 years to VBulletin. Would really appreciate any help with how to ensure that any old threads in Google are properly redirected to the correct new threads once I do the import.
Reply With Quote
  #85  
Old 02-26-2014, 03:38 PM
michaelstoffer michaelstoffer is offline
 
Join Date: Feb 2014
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would anyone have an idea on how to get this script to work if the URL structure had been changed from http://www.eaxample.com/forums to http://forums.example.com? This is something that I have been fighting with for a couple days now and can't seem to figure it out.
Reply With Quote
  #86  
Old 06-30-2014, 03:27 PM
adigetr adigetr is offline
 
Join Date: Jun 2014
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I need to for SMF to vbulletin ?

Anyone help me please ?

I used pretty url SMF

Now I use vb 3.8.4 and vbseo

I need to 301 redirect old SMF links please help me.

Thanks.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:53 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05599 seconds
  • Memory Usage 2,254KB
  • Queries Executed 20 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete