Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Spider/bot results not picking up all pages

Status
Not open for further replies.

JimFL

Programmer
Jun 17, 2005
131
GB
Hi,

I have a site that I am trying to optimise for more search engine results. When I try typing the
site:www.example.com
in google to list of the pages it has indexed, the google bot seems to have only picked up some of the pages and not all of them. I know that the bot scans the index page to find all the links connected to other pages and then searches for all those pages and the links within them.

So for some reason the bot is not indexing some of my pages on the site.

Just to explain the structure of the site :

I am using a index page containing includes to different pages. So each page has a different url. Hence the googlebot should identify them as different pages.

ie. www.example.com?id=1

All these pages set a php attribute for the title tag. They are working fine.

However the pages that are not displaying have the php attribute for the title tag passed through from a
_GET['title'] parameter.

Can anybody tell me why these pages are not being picked up by the browser? after all the title tag is displayed in the browser. Is it something to do with the extra characters that are set within my _GET parameter?

index.php?id=1&title=this%20is%20my%20example

Please help.

JimFl
 
Give it time, the bots will get to all the pages at their own pace.

You are usually good with up to 3 (I believe) parameters with the GET, but after that most search engines will not index.

You can try to use a rewrite tool to turn your pages from something like "index.php?id=title..." to more like "/id/title/..."

---------------------------------------
 
It seems a little cumbersome to pass the page title as a parameter like that, and an open invitation for people to deface your site. If I linked to a page on your site as index.php?id=1&title=I%20am%20an%20idiot , Google will eventually index that page, and might conceivably rank it higher than your page with the proper title.

I don't speak php, but could you not have an array of page titles for each id number? Something like this:
Code:
$title[1] = "Index";
$title[2] = "About";
$title[3] = "Products";
...
$title[99] = "Contact";

$thispagetitle = $title[_GET['id']];
You can, I believe, use includes in php so you'd only have to put the list of titles in a single file and include it into the others.

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
I believe that a robots file will only inhibit bots from searching specified folders - it won't encourage them.

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top