Forum Moderators: coopster
I've recently redone our website. I went from HTML to a page completely written in PHP with a mySQL database.
After a fews days I realized that google had already visited my page and updated the index. Unfortunately there are only 2 pages indexed. (start page and our disclaimer)
This has lead me to the question: how do spiders actually see PHP websites?
Is it possible that a spider doesn't follow links, because they contain php specific attributes? (like [exampledomain.com...]
The pages that were indexed are "plain" urls (www.exampledomain.com/index.php)
thx
Dan
Google at the moment, indexes pages which contain one variable in the URL, and don't include session id's.
You would need to try and limit your url variables to 1:
ie: [example.com...]
This should, under normal circumstances be indexed fine.
Some searching around here should throw up quite a few threads about Google indexing dynamic pages.
wruk999.
[edited by: wruk999 at 11:52 am (utc) on July 27, 2003]
Yes, It has been mentioned in a few past threads here at the boards, maybe someone has the URL's to examples off-hand.....
the "id" variable seems to be frowned upon by google, I think Googleguy mentioned that its because it could be a sessionID which is also undesirable for the bot.
URL's with query strings do get spidered, though the consensus is that too many variables (or low pagerank) will result in these pages NOT getting spidered.
I'd check out some of the great .htaccess tutorials and threads in the Website Technologies and related forums; if your pages contain lots of juicy content then they deserve a static URL.
//
You are too fast wruk, even on a sunday ;)
[edited by: brotherhood_of_LAN at 11:58 am (utc) on July 27, 2003]
Google is now better at spidering dynamic sites.
[webmasterworld.com]
wruk999
some .htaccess threads
A Close to perfect .htaccess ban list [webmasterworld.com]
An introduction to Redirecting URLs on an Apache Server [webmasterworld.com]
The Webmaster General and Website Technology forum libraries also have loads of similar info- a good place to start the hunt ;-)
Michael