[Script] 301 Redirect after ImpEx imported forums

Discussion in 'vBulletin Discussions' started by cionfs, Sep 12, 2013.

  1. cionfs

    cionfs Regular Member

    Joined:
    Sep 12, 2013
    Messages:
    4
    Likes Received:
    6
    Location:
    Taranto
    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
     

    Attached Files:

    Dan Hutter and Brandon like this.

Share This Page