How do you redirect domain and all pages from old domain to new domain?

Discussion in 'Search Engine Optimization' started by CouponCodes, Oct 3, 2009.

  1. #1
    How do you redirect domain and all pages from old domain to new domain?

    So I want to redirect

    olddomain.com and
    olddomain.com/* to

    newdomain.com
     
    CouponCodes, Oct 3, 2009 IP
  2. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you want to use a .htaccess file, put this in the file for the old domain:

    
    Redirect 301 / http://www.newdomain.com
    
    Code (markup):
    (Where newdomain.comm is the new domain name you want the old one pointed to.)
     
    Dan Schulz, Oct 3, 2009 IP
  3. atniz

    atniz Well-Known Member

    Messages:
    1,661
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    115
    #3
    atniz, Oct 3, 2009 IP
  4. webdev007

    webdev007 Active Member

    Messages:
    1,037
    Likes Received:
    13
    Best Answers:
    3
    Trophy Points:
    88
  5. budhi1976

    budhi1976 Peon

    Messages:
    84
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    hhmm... There are several ways to redirect your old domain's traffic to your new one, some are already covered above, you can also redirect it from your cPanel. The image below might be different with the one in your cPanel, but I am sure you'll get the idea.

    Cheers,
    [​IMG]
     
    budhi1976, Oct 3, 2009 IP
  6. extomas

    extomas Member

    Messages:
    237
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    33
    #6
    I hope you have got the answer of your question, 301 redirect is the best way to pass all SEO attributes to new website from old website.
     
    extomas, Oct 3, 2009 IP
  7. Vebtools

    Vebtools Well-Known Member

    Messages:
    2,619
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    145
    #7
    i suggest you to use google webmaster tools for redirect your domain it is simple and you will not lose any single indexed page


    here is the look


    [​IMG]
     
    Vebtools, Oct 3, 2009 IP
  8. anuj17280

    anuj17280 Peon

    Messages:
    69
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    If you are using cpanel than you can redirect the page using cpanel tools - it is very easy to redirect using cpanel. other option you use to set the parent directory to new domain base directory.
     
    anuj17280, Oct 3, 2009 IP
  9. gareth_esutera

    gareth_esutera Member

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #9
    This...

    The file names and directory structure must be the same for it to work. For example, if one page is called olddomain.com/page1.htm, in new domain, it must be newdomain.com/page1.htm.
     
    gareth_esutera, Oct 4, 2009 IP
  10. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Good point. Usually when moving from one server to another though, a Web site won't be changing its file and directory structure.

    Usually.
     
    Dan Schulz, Oct 4, 2009 IP
  11. baranbuffet

    baranbuffet Peon

    Messages:
    126
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Use .htaccess file in your old site index page ......
     
    baranbuffet, Oct 5, 2009 IP