Need help in Page Redirection

Discussion in 'Search Engine Optimization' started by colinhook.seo, Oct 1, 2008.

  1. #1
    Hi all,

    I believe i can get the solution of my problem after long time.

    My website is 5 years old site, and 2 version English and Spanish before 4 months i have redesign and developed my site in PHP from html my old URL structure was like English version (.com/index.htm) and Spanish Version (.com/spanish/index_es.htm)

    After developing the new pages in php my one of friend said that you have to redirect the old page to new page other wise your PR will get down and old indexed pages will shows 404 error.

    So i have followed his advice i have redirected (.com/index.htm) to (com/php/index.php) and (.com/spanish/index_es.htm) to (.com/spanish/php/index_es.php) by JavaScript code as below:

    <!--
    <script language="JavaScript">
    var time = null
    function move()
    {
    window.location = 'php/index.php';
    }
    </script>


    But still the new page have not got crawled and i have studied some blog and forums they are saying that google doesn't support the JavaScript code and they are advising to have below tag:

    <meta http-equiv="refresh" content="0; url=http://www.yourcompany.com/php/index.php">

    Please Advice if I replace the javasript with this tag that create any problem or google will crawl my new URL quick or i can fetch my pr to this page.

    Please I am waiting for you reply I am worried after spending too money
     
    colinhook.seo, Oct 1, 2008 IP
  2. Boulder

    Boulder Well-Known Member

    Messages:
    806
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    118
    #2
    Javascript redirect is not a good redirect method to use for SEO or web crawler purposes. In fact many robots ignore or move over javascript!

    You should use Apache .htaccess method for this purpose. Use 301 permanent redirects in the .htaccess file.

    Google will follow those for sure.

    Boulder
     
    Boulder, Oct 2, 2008 IP
  3. UK_Rich

    UK_Rich Banned

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i believe with Boulder
    301 redirect will carry all your link juice and ranks for you
     
    UK_Rich, Oct 2, 2008 IP
  4. T_Media

    T_Media Peon

    Messages:
    691
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You must remove the javascript redirect right away and use a 301 redirect using the .htaccess

    If you do not change quickly the old pages will not pass value to the new pages.
     
    T_Media, Oct 2, 2008 IP
  5. monfis

    monfis Well-Known Member

    Messages:
    1,476
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    160
    #5
    You should use the htacces file and do a 301 redirect for every page, if you have problems doing this you can use the meta refresh - but make sure to have the robots meta tag set to "noindex, follow" !!!
     
    monfis, Oct 2, 2008 IP
  6. Debt Reduction

    Debt Reduction Peon

    Messages:
    248
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    The redirection can also be done without htaccess.

    We don't have to edit the file so it may be easy....

    But don't know exactly about that......
     
    Debt Reduction, Nov 5, 2008 IP
  7. sapanbhatt

    sapanbhatt Active Member

    Messages:
    97
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #7
    Please do not use any javascript redirection or any of meta refresh redirection. And who tells you to use meta refresh redirection for redirecting old pages to new pages. Its very simple....

    Use .htaccess for redirection from old to new page

    Use this code

    <-- Code -->

    Options +FollowSymlinks

    RewriteEngine on

    Redirect 301 /oldpage.php(space)http://www.yoursite.com/newpage.html

    <-- Code -->
     
    sapanbhatt, Nov 18, 2008 IP