1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

how to redirect old link to new link

Discussion in 'Site & Server Administration' started by silent angel, Nov 22, 2013.

  1. #1
    hi to all i am using vbulletin for my forum with vbseo
    i want to change root of my forum www.example.com TO www.example.com/forum
    how to redirect all user of google search from old link to new link
     
    silent angel, Nov 22, 2013 IP
  2. ServerPolice

    ServerPolice Greenhorn

    Messages:
    18
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    23
    #2
    You can use htaccess to move all users from root to the forums,

    RewriteEngine On
    RewriteRule ^$ /forum [L]
     
    ServerPolice, Nov 22, 2013 IP
  3. 7Host

    7Host Greenhorn

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #3
    Using htaccess for 301 redirection is the best method
     
    7Host, Nov 22, 2013 IP
  4. infinitnet

    infinitnet Member

    Messages:
    56
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    35
    #4
    Create a file called .htaccess in your website's main directory and put the following content into it:
    RewriteEngine On
    Redirect 301 / http://www.example.com/forum/
    Code (markup):
     
    infinitnet, Nov 23, 2013 IP
  5. silent angel

    silent angel Greenhorn

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #5
    with this code
    RewriteEngine On
    Redirect 301 / http://www.example.com/forum/
    Code (markup):
    my all posts and threads will move on new link or when some one search in google (cause in google it will show old link)it will show not found
     
    silent angel, Nov 27, 2013 IP
  6. infinitnet

    infinitnet Member

    Messages:
    56
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    35
    #6
    Have you tried the code from ServerPolice too?
     
    infinitnet, Nov 27, 2013 IP
  7. silent angel

    silent angel Greenhorn

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #7
    no i did not try from serverpolice
     
    silent angel, Nov 27, 2013 IP
  8. khanals

    khanals Member

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    38
    #8
    put this code at the top of index.php

    <?php
    header("Location:yournewlinkhere");
    ?>
     
    khanals, Dec 7, 2013 IP