301 redirect rule help

Discussion in 'PHP' started by Danielz, Mar 2, 2010.

  1. #1
    Hi, I recently moved my VB forum to new domain. Please anybody suggest me a 301 redirect rule

    if someone goes to

    oldsite.com/page1
    oldsite.com/page2
    oldsite.com/page3

    etc

    it doesn't just go to

    newsite.com/

    it should have a 1 to 1 relationship, so what they want is for

    oldsite.com/page1
    oldsite.com/page2
    oldsite.com/page3

    to goto

    newsite.com/page1
    newsite.com/page2
    newsite.com/page3
     
    Danielz, Mar 2, 2010 IP
  2. Narrator

    Narrator Active Member

    Messages:
    392
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    80
    #2
    You can redirect them by editing the .htaccess file on the old site
    Options +FollowSymlinks 
    RewriteEngine on 
    redirectMatch 301 ^(.*)$ http://www.newsite.com$1
    Code (markup):
     
    Narrator, Mar 2, 2010 IP
  3. Danielz

    Danielz Peon

    Messages:
    115
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank You Very Much Narrator
     
    Danielz, Mar 2, 2010 IP