I have a website and I want to change some pages from static .php pages to pages that load content via MySQL.
Because, the pages are different I’ll get the page name through the URL.
So, what I basicaly want is to replace:
www.website.com/abcd.php
With
www.website.com/page.php?id="abcd"
And I was wondering if Gooogle and other search engine will index all the pages page.php?id="abcd" , page.php?id="asdfg etc… or will they only index the page.php page with no content?
Google will try to index all pages it founds unless it find a HTTP status different than 2XX or 3XX. I recommend you leave the pages as static to add keyword density.
In fact
will be more relevant than
to prevent crawlers to index crap or undesired content I recommend you to throw a HTTP 404 status in case the url make no sense. For example
where the id is empty.
regarding pretty urls check my previous answers and this one in particular
saludos