>I'm about to build a website and alot of my pages are going to
>be built using php and sql with info coming from a database and
>im worried that my pages wont be picked up by google or other
>spider search engines...
>
>Do I need to be worried? or will they get spidered the same as
>it would if it were the HTML page that the end browser gets
>after my php has run?
The .php pages get spidered just fine by google. Does any other search
engine matter?
>Anything else I should worry about with php and search engine spidering?
Yeah, using ? in the URL can have a negative impact. If you can,
use rewrite rules to get around it.
The simple alternative to rewrite rules - is the wonders of path info.
You can place a lot of information after the .php in the URL.
e.g. I have a directory script which uses URLs of the form
.../view.php/{n}
where {n} is the page number in the directory. Currently I'm working
on a system where URLs are all of the form:
.../index.php/{language}/{action}/{ID}/{2ndaryID- or flag}
or
.../index.php/{identifying cookie}/{language}/{action}/{ID}/{2ndaryID-
or flag}
I actually use Mod perl to parse the URL and leave a number of
environment variables for the PHP script to pick up.
>The simple alternative to rewrite rules - is the wonders of path info.
You still need to convince the web server to grab the right file
for the URL.
all my pages will NOT have any ? or & in the URL's as the php will only be
used to pull the same piece of info off the database onto multiple pages..
ie.
i may have 3 pages
birthdays.php
valentines.php
mothersday.php
but infact the pages will be 90% html with a small PHP script running to
pull in a few menus that are needed on all pages.
then if i want to change the menus content i can just change the info in the
database and ALL my pages will update automaticlly!
Do search engines just read the resulting HTML page as the browser views it?
Can it follow the links im writing to the HTML page in my php code?
Am i correct in thinking as long as i dont have any variables being passed
with ? in the url's im safe with all search engines?
Thanks once more
Dave
<el...@no.spam> wrote in message news:10265440...@spinics.net...
Mostly, yes.
> Can it follow the links im writing to the HTML page in my php code?
Yes
> Am i correct in thinking as long as i dont have any variables being passed
> with ? in the url's im safe with all search engines?
Yes, unless there is a very anal searchengine around which only does
.html files.
But also, you might want to consider to generate static HTML pages
everytime you change the menus. This will give you as advantage that the
pages are only created once, thus only running the query once, and it
will show your pages faster, because the script doesn't need to be parsed.
You could make for example a generator script to generate the pages when
there is something updated.
Derick
--
---------------------------------------------------------------------
Derick Rethans http://www.derickrethans.nl/
Did I help you? http://www.derickrethans.nl/link.php?url=giftlist
---------------------------------------------------------------------
>Am i correct in thinking as long as i dont have any variables being passed
>with ? in the url's im safe with all search engines?
That's pretty much the case.
>Yes, unless there is a very anal searchengine around which only does
>.html files.
One that anile would probably only like .htm files ;)