SEO question

Discussion in 'Search Engine Optimization' started by tubeyak, Apr 5, 2009.

  1. #1
    If I add a script to the footer of website X for instance that shows a random page from my website each time website X loads, will PR from website X be transferred over to my site's page?
     
    tubeyak, Apr 5, 2009 IP
  2. sloth456

    sloth456 Greenhorn

    Messages:
    79
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    18
    #2
    Do you mean through a frame or something?
     
    sloth456, Apr 5, 2009 IP
  3. Flip-Side Entertainment

    Flip-Side Entertainment Member

    Messages:
    119
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    28
    #3
    Well from my understanding the Link Page can get indexed so if that is your intention then you will get that. But if the webpage does not always show up PR wont really be counted because everytime a new page shows up the PR will go to that page and then it crawls it again and the PR will be transfered to the new page but then discontinued from the old page.
     
  4. tubeyak

    tubeyak Active Member

    Messages:
    1,247
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    80
    #4
    Not necessarily. If I just add a php script that loads a random page on some site's homepage footer for example, will that random page get PR since each time that homepage is loaded, a different page will shown up on the footer.
     
    tubeyak, Apr 5, 2009 IP
  5. darkdrgn2k

    darkdrgn2k Active Member

    Messages:
    159
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #5
    I'd like to point out that GOOGLE knows the difference between random content (content changes ALL the time) and when its real content change..
     
    darkdrgn2k, Apr 5, 2009 IP
  6. Canonical

    Canonical Well-Known Member

    Messages:
    2,223
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    110
    #6
    He's talking about having a random footer link...

    I've have been contemplating doing this on some of my pages myself, but more from the perspective of linking to the same page all of the time but having different link text appear in the footer of different pages.

    I think the key for you to do this successfully would be to insure that the link in the footer of URL A is always to the same page... and the link in the footer of URL B is always the same page (but different from the page linked to by URL A). This can be done without hardcoding a mapping like IF CurrentPageURL =URL A THEN Link to Page X.

    If URL A has a footer link to Page X today when Google crawls and then that same URL A has a footer link to Page Y next week when they recrawl, your PR is always going to be in flux and your rankings could yoyo because the links and link text are always changing.

    But if URL A always links to the same Page X and URL B always links to the same Page Y then once the random page is determined it is always the same and your PR and rankings in the SERPs will no yoyo because the links are always constant.

    One way to do this would be to implement something in PHP like the following psuedocode (sorry not familiar w/ PhP) that accepts the current page's URL and returns a string with the corresponding anchor element:

    Function string GetRandomLinkBasedOnCurrentPageURL(string CurrentPageURL)
    {

    Define a RandomURLArray of strings

    Load RandomURLArray with the list of possible pages that the footer might link to across the site

    #For example,
    #
    #RandomURLArray[0]="http://www.example.com/pagea.html";
    #RandomURLArray[1]="http://www.example.com/pageb.html";
    #RandomURLArray[2]="http://www.example.com/pagec.html";
    #RandomURLArray[3]="http://www.example.com/paged.html";
    #RandomURLArray[4]="http://www.example.com/pagee.html";
    #RandomURLArray[5]="http://www.example.com/pagef.html";
    #RandomURLArray[6]="http://www.example.com/pageg.html";
    #RandomURLArray[7]="http://www.example.com/pageh.html";
    #RandomURLArray[8]="http://www.example.com/pagei.html";
    #RandomURLArray[9]="http://www.example.com/pagej.html";

    Load an array of link text for each RandomURLArray entry

    #LinkText[0]="link text for pagea.html";
    #LinkText[1]="link text for pageb.html";
    #LinkText[2]="link text for pagec.html";
    #LinkText[3]="link text for paged.html";
    #LinkText[4]="link text for pagee.html";
    #LinkText[5]="link text for pagef.html";
    #LinkText[6]="link text for pageg.html";
    #LinkText[7]="link text for pageh.html";
    #LinkText[8]="link text for pagei.html";
    #LinkText[9]="link text for pagej.html";

    Call a hashing function that you've written which accepts the CurrentPageURL and returns an integer value between 0 and NumberOfItemsIn(RandomURLArray). Perhaps it zips through the CurrentPageURL string doing the equivalent of the following:

    int index = 0;

    index = index + ord('h');
    index = index - ord('t');
    index = index * ord('t');
    index = index / ord('p'); #note integer division, truncates remainder
    index = index + ord(':');
    index = index - ord('/');
    index = index * ord('/');
    index = index / ord('w'); #note integer division, truncates remainder
    index = index + ord('w');
    index = index - ord('w');
    index = index * ord('.');
    index = index / ord('e'); #note integer division, truncates remainder
    index = index + ord('x');
    index = index - ord('a');
    index = index * ord('m');
    index = index / ord('p'); #note integer division, truncates remainder
    index = index + ord('l');
    index = index - ord('e');
    index = index * ord('.');
    index = index / ord('c'); #note integer division, truncates remainder
    index = index + ord('o');
    index = index - ord('m');
    index = index * ord('/');
    index = index / ord('m'); #note integer division, truncates remainder
    index = index + ord('y');
    index = index - ord('p');
    index = index * ord('a');
    index = index / ord('g'); #note integer division, truncates remainder
    index = index + ord('e');
    index = index - ord('1');
    index = index * ord('.');
    index = index / ord('h'); #note integer division, truncates remainder
    index = index + ord('t');
    index = index - ord('m');
    index = index * ord('l');

    index= index modulus NumberOfItemsIn(RandomURLArray); # modulus will divide by 10 and return the remainder between 0 and 9 so you can use it to index the RandomURLArray and LinkText array.

    NOTE: There is a whole science behind writing hashing functions like this. It may be that this particular algo I just made up only ever returns 1, 3,4, 7, 9 regardless of the input... so not completely random... but you get the idea... There may be hashing functions like this built into PhP. The key is you don't want to have to hardcode a mapping IF CurrentPageURL="X" THEN MakeFooterLink="Y". That will require a change everytime you add a new URL to your site. You want something dynamic but that always returns the same int 0-9 in this example for the same CurrentPageURL.

    Return ("<a href=""" + RandomURLArray[index] + """>" + LinkText[index] + """</a>")
    }
     
    Canonical, Apr 5, 2009 IP
  7. tubeyak

    tubeyak Active Member

    Messages:
    1,247
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    80
    #7
    Thanks a lot Canonical. That's exactly what I was thinking.
     
    tubeyak, Apr 5, 2009 IP
  8. Canonical

    Canonical Well-Known Member

    Messages:
    2,223
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    110
    #8
    No problem...
     
    Canonical, Apr 5, 2009 IP