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.

redirect old site to new site

Discussion in 'Site & Server Administration' started by arcade32, Jun 23, 2007.

  1. #1
    hi i really need to redirect my old site to my new site ii have setup a 301 redirect in godaddy but that just redirects myolddomain.com to my newdomain.com my site is database driven so when someone goes to myoldsite.com/xxx i ned it to go to the same page on mynewsite.com/xxx any help

    thanks
    SEMrush
     
    arcade32, Jun 23, 2007 IP
    SEMrush
  2. kokopelli

    kokopelli Peon

    Messages:
    2,436
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I use this in my (old site's) htaccess file:
    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule (.*) http://newsite.com/$1 [R=301,L]
    Code (markup):
     
    kokopelli, Jun 24, 2007 IP
    arcade32 likes this.
  3. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Should work as required.
     
    agnivo007, Jun 24, 2007 IP
  4. arcade32

    arcade32 Peon

    Messages:
    659
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thanks guys worked great
     
    arcade32, Jun 28, 2007 IP