This has been bugging me for awhile now and I thought someone here could help. How does Google index dynamically created webpages? Say my page is www.example.com/php?stuff=hi. Depending on what the "stuff" variable value is, is what will in dictate the content of the particular webpage. This is due to MySQL pulling up the appropriate content from the "stuff" variable and posting that info onto the page. So if no one is linking to www.example.com/php?stuff=hi how does Google crawl it. Does Google think of every possible variable value for "stuff" and then index all of those unique domains? That just doesn't sound right. Please help.
Google (and other SEs) discover dynamic pages from backlinks and sitemap. You might have a static page noone links to and it's also not there in sitemap none of the SEs would be able to discover the page and they will fail to index it. However, if there are backlinks to a page or the page is in sitemap, google will index it sooner or later. I have tried as many as 10 variables e.g. php?variable1=hi&variable2=bye in URLs and have got them indexed.
If the link (www.example.com/php?stuff=hi ) is in google that means someone has linked to it somewhere. Google doesnt guess.
yea but google wont hold those 10 variations of the 1 dynamic link high individually, but instead whill give them equal value
That's not entirely true.. if you see DP's individual discussion pages.. They are dynamically generated and have different value for one parameter.. Some threads are PR3/4 by themselves.. I am inclined to think that value/weight given to the variations would depend on number of backlinks received by them.
So the only way Google will index dynamic domains is via backlinks (to that domain) or via sitemaps? Please correct me if I'm wrong.
Dynamic pages are fly pages generated content from the database. It is very important to inform google about the dynamic pages by adding link of the dynamic pages in the navigation of the website. Yes site map is also helpful.
Also there is no reason dynamic pages can't have urls without parameters. http://engineering.curiouscatblog.net/category/robots/ is a dynamic link for example. But yes unless Google gets a link to it it will not index it. Any link will let Google know they don't just have to be in sitemaps. Any link on your site or on another site. Also the dynamic links can appear much more easily than people think. If a site publishes some logs in a way Google can crawl and the log shows someone linked to their site from your dynamic page - bingo Google can index it...