1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How should I do a 301 domain redirect?

Discussion in 'White Hat SEO' started by UnDerDoG81, Apr 25, 2017.

  1. UnDerDoG81

    UnDerDoG81 Power Member

    Joined:
    Oct 29, 2009
    Messages:
    542
    Likes Received:
    82
    Hi,

    I bought a 2 year old Website and I don´t like the domain name. I´ll say 95% of the links point to the home page. I want to redirect it to a fresh domain. The website itself has only about 25 pages. Should I simply do a 301 old domain to new domain? Or point each url to url via 301? I guess the front page would get more power when I do a 301 from domain to domain?

    I´ve read in an older post that a website loses 15% of its power when you do a 301 redirect. Is that still true?

    How long would it take until I get the old rankings back with the new domain?

    And what about indexation? How can I avoid that google thinks it´s duplicate content? Is it enough to do that in webmaster tools?
     
    Last edited: Apr 25, 2017
  2. seohug

    seohug Jr. VIP Jr. VIP

    Joined:
    Feb 14, 2011
    Messages:
    336
    Likes Received:
    61
    Gender:
    Male
    Occupation:
    Automator
    Location:
    UK
    Home Page:
    Let's say your old domain is olddomain.com and the new domain is newdomain.com

    Create a file on the root of folder of old domain (where the index file is) and call it .htaccess
    Add the following content in
    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^olddomain\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.olddomain\.com$
    RewriteRule ^/?$ "http\:\/\/www\.newdomain\.com\/" [R=301,L]
    Browser to the old domain using olddomain.com and www.olddomain.com and check it redirects correctly. Change the http above to https if you run on SSL.

    Usually, full juice is passed to the new domain. Allow for up to 4 weeks. No duplicate content issue if redirect is done correctly.
     
    • Thanks Thanks x 3
  3. UnDerDoG81

    UnDerDoG81 Power Member

    Joined:
    Oct 29, 2009
    Messages:
    542
    Likes Received:
    82
    Thanks a lot!

    If the old domain was running on http and now is running on https, how can I redirect both variations? Since the old domain has links to http and https.
     
  4. seohug

    seohug Jr. VIP Jr. VIP

    Joined:
    Feb 14, 2011
    Messages:
    336
    Likes Received:
    61
    Gender:
    Male
    Occupation:
    Automator
    Location:
    UK
    Home Page:
    Replace http to https on the 3rd line above.
     
  5. UnDerDoG81

    UnDerDoG81 Power Member

    Joined:
    Oct 29, 2009
    Messages:
    542
    Likes Received:
    82
    But then http (the old links that point to http) won´t get redirected?
     
  6. seohug

    seohug Jr. VIP Jr. VIP

    Joined:
    Feb 14, 2011
    Messages:
    336
    Likes Received:
    61
    Gender:
    Male
    Occupation:
    Automator
    Location:
    UK
    Home Page:
    External links will get redirected fine. Internal relative link will also get redirected.

    If you have explicit internal links like
    Code:
    http://www.olddomain.com/page.html
    , it will get redirected to
    Code:
    https://www.newdomain.com/page.html
    , but it would be better to update then in the inner content.
     
    • Thanks Thanks x 1
  7. bartosimpsonio

    bartosimpsonio Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 21, 2013
    Messages:
    12,048
    Likes Received:
    10,833
    Occupation:
    WHEREZ MA
    Location:
    BITCOINS AT?
    Home Page:
    If these are legit sites, then after you 301, add both to search console and tell Google you've changed the site address. It's in the settings (little gear icon) for a specific site. It helps a lot and speeds up the transfer of links from the old to the new site.
     
    • Thanks Thanks x 1
  8. lightshines

    lightshines Junior Member

    Joined:
    Aug 4, 2010
    Messages:
    100
    Likes Received:
    14
    Learnt a new thing from your post. Thanks
     
  9. UnDerDoG81

    UnDerDoG81 Power Member

    Joined:
    Oct 29, 2009
    Messages:
    542
    Likes Received:
    82
    That did not work, what did I wrong? It simply does not redirect anything. Google says also that the 301 does not work.
     
  10. McPreneur

    McPreneur Newbie

    Joined:
    Apr 25, 2017
    Messages:
    17
    Likes Received:
    6
    Just do a domain forward from your registrar (eg. Godaddy). It's much easier than writing the htaccess. Google "redirect domain at Godaddy" or replace Godaddy with your registrar. It takes 1 minute to do.
     
  11. mbreezy

    mbreezy Regular Member

    Joined:
    Jun 27, 2012
    Messages:
    463
    Likes Received:
    154
    If you want to use the same content, map the URLs from the old domain to the one; then use the Google Change of Address tool in Search Console/Webmaster Tools.
     
  12. UnDerDoG81

    UnDerDoG81 Power Member

    Joined:
    Oct 29, 2009
    Messages:
    542
    Likes Received:
    82
    Hey, I did the 301 redirect now with cpanel and from domain to domain it works. But when I open something like "olddomain. com/oldurl" - I get an 404 instead of a redirect. Is that normal?

    And should I force google to index the new domain? Or should I let that naturally happen? I approved in google wmt that the old domain should point to the new domain.

    EDIT: Nevermind, I had to activate wildcard. But still the 2nd question is interesting.
     
    Last edited: Apr 29, 2017
  13. UnDerDoG81

    UnDerDoG81 Power Member

    Joined:
    Oct 29, 2009
    Messages:
    542
    Likes Received:
    82
    So, I did that redirect on saturday and today my "old" website disapeared from rankings. But the new site did not pop up anywhere in the top100. I guess thats normal?
     
  14. seohug

    seohug Jr. VIP Jr. VIP

    Joined:
    Feb 14, 2011
    Messages:
    336
    Likes Received:
    61
    Gender:
    Male
    Occupation:
    Automator
    Location:
    UK
    Home Page:
    Yes, give it 2-4 weeks
     
  15. yoganandayyagari

    yoganandayyagari Newbie

    Joined:
    Feb 13, 2015
    Messages:
    5
    Likes Received:
    1
    Gender:
    Male
    Occupation:
    Digital Marketing Trainer
    Location:
    India
    Home Page:
    Even I am also looking for the same..
     
  16. Nut-Nights

    Nut-Nights Jr. VIP Jr. VIP

    Joined:
    Jun 20, 2013
    Messages:
    5,034
    Likes Received:
    3,206
    Location:
    Hell
    Home Page:
    Now Google pass PR and link juice on all types of 30x redirects. So its really doesn't matter. But normally you will see results in a week if you setup everything correctly.
     
  17. UnDerDoG81

    UnDerDoG81 Power Member

    Joined:
    Oct 29, 2009
    Messages:
    542
    Likes Received:
    82
    Thanks! This is so strange, always when I try something and it works, something different happens and "destroys" it. So, the main keyword for the old domain jumped from #27 to #11 two days ago. Now the old domain disapeared, the new domain showed up today and sits on #27 for the main keyword. So I am not sure if google released my old domain from a penalty for two days and the new domain will sit a while on the penalty position as well.
     
  18. UnDerDoG81

    UnDerDoG81 Power Member

    Joined:
    Oct 29, 2009
    Messages:
    542
    Likes Received:
    82
    Still nailed on #27 - 31. Not sure if this is normal since I never did a domain redirect before? It looks like the main keyword has arrived it´s main position now.
    Old Domain was sitting on #27 for a long time but moved to #11 just two days after I pointed everything to the new domain. That sucks now.
     
  19. UnDerDoG81

    UnDerDoG81 Power Member

    Joined:
    Oct 29, 2009
    Messages:
    542
    Likes Received:
    82
    So, almost 1 month passed and still no rankings. 3 days ago even the 2 main keywords dropped dropped from #30 to nowhere. Is that normal? Or should I go back to the old domain? That one was sitting on #11 for the main keyword.
     
  20. rocky_15

    rocky_15 Newbie

    Joined:
    Oct 30, 2016
    Messages:
    18
    Likes Received:
    4
    Gender:
    Male
    I was looking the same thing, thanks @seohug :)