Need help on how to redirect from an old site to a new site? 301 redirect Wordpress

Discussion in 'Search Engine Optimization' started by rameshramaiah, Feb 3, 2012.

  1. #1
    Hi experts!


    I am running through few difficulties and i went through google but no answer found what i am looking for.

    Please help me on this issue.

    I have had a free wordpress blog which is about an year old with 50 pages on it. The blog currently deactivated due to affilaite promotion and wordpress requested me to host it privately. I registered a domain name plus hosting option with the webhosting company under wordpress platform and asked them to export pages and they did as well. Also they said everything exported properly as promised and i could see my old blog pages on my new site. However, visitors from the search engines not directing to a new site. Why? I went through google and clicked a link of my old blog post from the google search result but it is taking to an old wordpress site which is not active click here to see the site. I also added my new site in webmaster and submitted a sitemap. So what next? The hosting company said that it will take 48-72 hours to propagate. But i do not know how visitors will be redirected from an old to a new site?

    Note: Old blog also from wordpress but free one and newly registered site running under wordpress platform through webhosting company.

    I feel that search engines identity duplicate content in both. How to resolve this? Tell me so that i can do my self or may be i can request a hosting company to do that.

    I m looking forward to have a legitimate info on this.

    waiting for your swift reply.
     
    rameshramaiah, Feb 3, 2012 IP
  2. coreseo

    coreseo Member

    Messages:
    97
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #2
    Here are just two simple ways to redirect your page!

    1. This first example is useful if you want to inform your visitor that you have moved.

    Into the HEAD section of your page type:

    <meta http-equiv="refresh" content="5; URL=http://my new web address">

    And into the BODY of your document put

    "my old web address" has moved to "my new web address"

    If your browser does not automatically redirect you in 5 seconds,
    click <a href="http://my new web address">here</a> to go to the new site.

    2. The second example using java script is handy if you have a number of domain names (for whatever reason) but want all names to point to the same domain.

    Just add this to the top of your document:

    <script language="JavaScript">
    <!--
    if( -1 == location.href.
    toLowerCase().
    indexOf('mydomainA.com') )
    {
    location.href = 'http://mydomainA.com';
    }
    // -->
    </script>


    The above code will check if 'mydomainA.com' is part of the code and if not will immediately redirect to 'http://mydomainA.com'

    Option 2 is best I think unless you want to actually inform your visitor of the change then option 1 can be a good idea.
     
    coreseo, Feb 3, 2012 IP
  3. rameshramaiah

    rameshramaiah Active Member

    Messages:
    129
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #3
    Thank you for your swift reply...i believe that you're asking me to put those codes in my old wordpress site to redirect. But very sadly there is no template editing option there.
     
    rameshramaiah, Feb 4, 2012 IP