Re: PHP and Search Engines
| From: | Rasmus Lerdorf | Date: | Wed, 08 Nov 2000 19:03:18 +0000 |
| Subject: | Re: PHP and Search Engines | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-24351@lists.php.net to get a copy of this message | ||
Search engines have no way of knowing that the content is generated by
PHP. And they don't care. It doesn't matter whether your files end in
.php or .html. Some search engine do indeed not index pages with a ? in
them. You can get around this by using $PATH_INFO arguments instead. So,
for example:
http://www.foo.bar/some/path/script.php/arg1/arg2
$PATH_INFO will contain "/arg1/arg2"
You can also add something like this to your httpd.conf file:
<Location "/some/path/script">
ForceType application/x-httpd-php
</Location>
And then you can make your URL look like this:
http://www.foo.bar/some/path/script/arg1/arg2
This makes things very flexible for you and you can keep your URLs nice
and pretty. I hate big long ugly untypable URLs with a passion. URLs
should be easy to guess. For example:
http://www.foo.bar/products/widget
That should give me information and the product called "widget". You can
make a script named "products" that takes $PATH_INFO and queries the
database and comes back with a page with details about that product.
-Rasmus
On Wed, 8 Nov 2000, Abe Asghar wrote:
> I am working with a colleague who has spent a large amount of time working
> on a large and complex web site. We are looking at using PHP to generate
> many of the pages.
>
> We have set up the server to parse all html pages so you dont see'.php'
> anywhere. Would search engines have any problems whatsoever about indexing
> our site?
>
> Also I understand that search engines dont always follow links with question
> marks in them. My colleague is unsure about making a change this big that
> may result in problems with search engines which we cannot afford.
>
> I have asked a similar question before but my colleague is unsure before
> allowing me to do this. If anyone has anything that they are sure of that
> they can show me such as a link that talks about this or your own
> experience - I would really appreciate it.
>
> Thanks,
> Abe
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>