Pls Help solve my page rank problem

Discussion in 'Search Engine Optimization' started by blogatom, Mar 1, 2008.

  1. #1
    one of my sites which is a blog directory in php has a problem with page rank.
    the problem is :
    the page http://www.myblogdirectory.net is ranked PR4
    and the page http://www.myblogdirectory.net/index.php is ranked higher at PR5

    what should i do to remove this PR difference
    please help

    to the moderator ,
    my problem is genuine and requires the listing of links .
     
    blogatom, Mar 1, 2008 IP
  2. wmtips

    wmtips Well-Known Member

    Messages:
    601
    Likes Received:
    70
    Best Answers:
    1
    Trophy Points:
    150
    #2
    Never use "index.php" part while registering your site in directories and placing links.

    Theoretically now you can set up a permanent 301 redirect to pass rank from "index.php" to the site root. You can try the following PHP code, place it in the beginning of the file. Please note I wrote this code in 1 min so no warranty. Also, this code ignores GET parameters, so it could not be used if you have forms passing parameters to the /index.php url.

    Code:
    
    if ($_SERVER['REQUEST_URI'] == '/index.php')
    {
     header('Location: http://www.myblogdirectory.net',true,301);
     die();
    }
    
    PHP:
     
    wmtips, Mar 1, 2008 IP
  3. blogatom

    blogatom Peon

    Messages:
    264
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    blogatom, Mar 1, 2008 IP
  4. wmtips

    wmtips Well-Known Member

    Messages:
    601
    Likes Received:
    70
    Best Answers:
    1
    Trophy Points:
    150
    #4
    Sorry, I was wrong. It will not redirect if you have GET parameters. To prevent redirect if you have POST parameters it could be as follows:

    if ($_SERVER['REQUEST_URI'] == '/index.php' && !count($_POST))
    {
     header('Location: http://www.myblogdirectory.net',true,301);
     die();
    }
    PHP:
     
    wmtips, Mar 1, 2008 IP
  5. Dreads

    Dreads Well-Known Member

    Messages:
    1,884
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    150
    #5
    Just do a 301 and you should be set,

    Your job is not to transfer the pagerank, but stop googlebots from thinking its duplicate content
     
    Dreads, Mar 1, 2008 IP
  6. adityaw

    adityaw Peon

    Messages:
    130
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    adityaw, Mar 2, 2008 IP
  7. blogatom

    blogatom Peon

    Messages:
    264
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Thanks everyone for your input
    and
    a special thanks to wmtips for providing me the code (i have implemented this code , hope it help solve my problem).
    i am giving u a free 1 month link back to ur site wmtips.com from my blogshowoff.com PR5 site . :)
     
    blogatom, Mar 2, 2008 IP
  8. Menno Spijkstra

    Menno Spijkstra Peon

    Messages:
    14
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Exactly, the duplicate content issue should worry you more than the PR...
     
    Menno Spijkstra, Mar 2, 2008 IP