Tuesday 15 February 2011

php - Does google crawl/index the "computed" or raw html source? -


I have found a unique situation in which I have some pages that are "paged" in many pages (by wordpress "next Page "feature) is spread over the same content, two or more pages:

  http://mysite.com/mypage/ http://mysite.com/mypage/2 Http: // mysitecom / mypage / 3   

Therefore, the page contains an html page title tag & lt; Title & gt; My page & lt; / Title & gt; , more than a page, I had to create a script to add a unique HTML title tag for all those pages so that Google can be found to index them.

To do this, I

  $ explosion = explosion ("/", $ _ server ['REQUEST_URI']); If (is_numeric ($ $ [sizeof ($ Explosion) -2] & amp ;! Is_archive ()) {$ title = $ heading "(Page". $ $ [Sizeof ($ exploded) -2] Explosion. ")"; }   

which creates a unique page title for each of those "paged" pages such as:

  & lt; Title & gt; Mypage & lt; / Title & gt; & Lt; Title & gt; Mypage (page 2) & lt; / Title & gt; & Lt; Title & gt; Mypage (page 3) & lt; / Title & gt;   

Now, I have participated in a situation where I am trying to increase it slightly for a page with a more descriptive title.

Therefore, in my markup, when a page is endorsed in this way, I have included an HTML "statement" element that includes a table of contents on that page: < Pre> & lt; Description class = "myEl" Open = "Open" & gt; & Lt; Summary & gt; In this article & lt; / Summary & gt; & Lt; Ol & gt; & Lt; Li & gt; & Lt; A href = "post-slug /" & gt; Introduction & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "post-slug / 2 /" class = "active" & gt; Title for the second page & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "post-slug / 3 /" & gt; Title for third page & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ol & gt; & Lt; / Details & gt;

To try to copy the title of TOC in the title tag (to change the "Page X" title), I am trying to use this jQuery script ( Which works for no errors, change the title of "compute" source):

  & lt; Script & gt; Jquery (document) .ready (function () {var title = jQuery ('. MyEl'). ('A.active').) Text (); JQuery ('title'). Text (title);}); & Lt; / Script & gt;   

However, when I test using these pages, the headline "(Page X)" remains unchanged from the syntax. It is such that Google is parsing raw HTML sources and is not a math source.

Can this be confirmed?

While some crawlers are capable of running JS and reaching pages, there is no majority. Consequently, they base their information on all raw HTML, and use the provided page (if available) to discover the Blackhawet SEO strategy (hidden keyword stuffing, link change, JS redirects, etc.).

If you want Google to (and other search engines) to take on your better title, you have to send it instead of modifying it after page load after loading the HTML and instead of modifying it.

No comments:

Post a Comment