vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - [Script] 301 Redirect after ImpEx imported forums (https://vborg.vbsupport.ru/showthread.php?t=302200)

cionfs 09-11-2013 10:00 PM

[Script] 301 Redirect after ImpEx imported forums
 
1 Attachment(s)
Today I want to introduce a script produced by Federico Nuzzo of TGSDevs for 301 Redirect after ImpEx imported forums .
So it makes a 301 redirect url from Old -> New url.
It works if you have installed vBSEO or not.
This script has been tested to the redirect the imported phpbb3 urls to vBulletin 4.2.1.
It should also work for VB3 (since the DB structure is identical).
Should be enough rename the files to make it work with SMF and MyBB.
The script does the redirect of the forum and topic screens.

You must compile this

Code:

    $mysql_hostname = "localhost"; // localhost or IP address
    $mysql_username = ""; // user for MySQL
    $mysql_password = ""; // pass for MySQL
    $mysql_database = ""; // database used for vBulletin installation
    $mysql_prefix = "vb_"; // prefix for vBulletin tables
   
    $vBulletinURL = ""; // Sample: www.myforum.com

Once you have filled just upload the files to the root of the old forum and will be done automatically from the old url to the new 301.

PS: Sorry for my bad english

tfw2005 10-16-2013 10:23 PM

Any possibility to get a version for attachment.php working as well? (vb to vb import). Need to redirect old attachmentid to importattachmentid when attachment.php is requested on old site.

cionfs 10-17-2013 12:14 AM

Hi,
I don't know. I ask to my co-worker. :)


All times are GMT. The time now is 11:18 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00956 seconds
  • Memory Usage 1,713KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete