Forum Moderators: open

Message Too Old, No Replies

Google and PHP

         

nadsab

2:55 am on Apr 9, 2003 (gmt 0)

10+ Year Member



I was wondering if google will index php sites. If my pages are generated by php, will my site get indexed?

Brett_Tabke

3:00 am on Apr 9, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Have you tried:
[google.com...]

RoosterTail

3:09 am on Apr 9, 2003 (gmt 0)

10+ Year Member



The first page of that SERP isn't a great example Brett. This however, will show you that .php files are just fine:

[google.com...]

Filipe

3:22 am on Apr 9, 2003 (gmt 0)

10+ Year Member



Any dynamic server-side script that outputs HTML will be indexed. The dynamic code is processed before anyone or any spider reaches it, so all they see is HTML. Nobody can see the PHP script but you.

Be careful about HTML generated by client-side scripts (e.g., Javascript) because, since they depend on the browser, Googlebot (and other spiders) may not be able to spider them.

ircgeeks

3:25 am on Apr 9, 2003 (gmt 0)

10+ Year Member



I use an apache mod_rewrite technique in conjunction with my .htaccess to make my PHP www more SE friendly.

RewriteEngine On

RewriteRule ^index.html index.php

So on and so forth

johannes

6:11 am on Apr 9, 2003 (gmt 0)

10+ Year Member



In the past some search engines only indexed .html files, but those days are over.

One reason is that you can make a .html file execute as php. Or a directory like www.xxx.com/yyy can execute as php.
You don't have to make these changes, google will index www.xxx.com/yyy.php?a=b&c=d.... perfectly.

Be careful, don't add to many variables at the end. Especially not sessionids and other dynamic variables. The robots don't want to get into an endless loop.