Support » Fixing WordPress » how to redirect the old domain to the new domain ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Perform a Change of Address on Google

    https://www.google.com/webmasters/tools/change-address?hl=en&authuser=0

    (Check Bing and yahoo for similar feature)

    • This reply was modified 5 years, 7 months ago by luckychingi.
    Thread Starter halinh

    (@halinh)

    I am the owner
    ac
    why not
    acc

    Perform a Change of Address on Google

    ?????????

    Changing anything on Google is not going to redirect an old domain to a new domain.

    First, you need to still have full control and access to the domain.

    If you have that, but no hosting, discuss with your DNS provider how to do that.

    If you have hosting for the old domain, you can add these rules to a .htaccess file in root of site:

    
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^newdomain\.com$ [NC]
    RewriteRule ^(.*)$ http://newdomain.com/$1 [R=301,L]
    

    replace newdomain with your actual new domain name and adjust if not a .com site.

    That will redirect any URL of old domain to the same URL but at the new domain.

    So site.com/example will go to newsite.com/example

    Once that is all working do not leave an old install in there for security reasons (it will become out of date and insecure over time). Back it all up and save it though first.

    All you need in the root of old site at that point is an empty index file and the .htaccess file.

    Edit: Then you can add that site to Google and add the google code etc to the new site. You can tell them of a domain change, but you still need to redirect folks with the old links once new site is up as it takes time for google to re-index the site.

    • This reply was modified 5 years, 7 months ago by Pioneer Web Design. Reason: add last paragraph

    https://www.google.com/webmasters/tools/change-address?hl=en&authuser=0&siteUrl=http://www.maylocnuocsonha.com/

    Try this

    Once you are at the page, you will have instructions to migrate your domain

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘how to redirect the old domain to the new domain ?’ is closed to new replies.