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.

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