PDA

View Full Version : Google php search & results titles


newreality
08-05-2004, 10:35 AM
Google is spidering and indexing my php search page (for job search). Which means spidering drop menu options. note: using Get not Post.

This I like. Could work favorably. But -- is there any danger in having the same title for twenty five or thirty pages? Here Google is spidering the coded page title.

On the results pages however G is actually pulling the first line of text from this page and imposing it for the page titles! (php results page uses a passed ID from search page/drop menu, and results page is coded with no titles, simply "Untitled"). Will it matter if I list a title on the results page since G seems to be deriving titles from proximity/content? Or is G doing this in the absence of a coded title for search results?

Will this scenario change if I change my searches over to Post method?
(security reasons)

MattKP
08-05-2004, 04:26 PM
This I like. Could work favorably. But -- is there any danger in having the same title for twenty five or thirty pages?

In my experience. Yes there is danger. A lot of the times your pages will fall into the omitted search results, taking away from the strength of your pages and possibly making them not elligle to get good rankings.

Your best bet is to come up with a way to produce dynamic titles. Just as long as its simplistic.

newreality
08-05-2004, 06:18 PM
Like too the idea of dynamic titles. How is this done.

The title now is html. Is there a way to place a mysql col/ value into title?

Is there an easy way to create dynamic html titles from mysql table content?

On my results page isn't there a way to put <?php echo $row_Recordset['tablecolumn']; ?> to generate seperate page titles, within the <title></title> (head tag)

MattKP
08-06-2004, 11:19 AM
well i dont work with php too much, although I do have a client that needs dynamic titles... but im outsourcing the actual php work. I have done it with Coldfusion, but its the same principle. I just output database info into the title. Now one thing i have done with php on a site that wasnt too many pages is I made an IF statement. If it was page=3 then display this Meta group, If it is page=4 then display another Meta Group. It worked really well for that Client.

So you have 3 options.

1) IF statements to show Title/Meta tags for pages.
2) Put your Title, Description, Keyword info in the database and run a query to populate the tags on the screen. **recommended.
3) If you have products, output the product title in the tags along with having hardcoded keywords in those tags. The problem with this is that you have a lot of duplicated content in the tags, just changing a word or two. That could be bad.

digitalpoint
08-06-2004, 01:07 PM
Google is spidering and indexing my php search page (for job search). Which means spidering drop menu options. note: using Get not Post.

This I like. Could work favorably. But -- is there any danger in having the same title for twenty five or thirty pages? Here Google is spidering the coded page title.

On the results pages however G is actually pulling the first line of text from this page and imposing it for the page titles! (php results page uses a passed ID from search page/drop menu, and results page is coded with no titles, simply "Untitled"). Will it matter if I list a title on the results page since G seems to be deriving titles from proximity/content? Or is G doing this in the absence of a coded title for search results?

Will this scenario change if I change my searches over to Post method?
(security reasons)
Yes, Google can't spider an HTTP POST.

I ended up blocking spiders from search results on my site with robots.txt (mine is a POST already, but people were linking to the search results on occasion).