RE: [PHP] Hide php action pages from google
| From: | Jen Rasmussen | Date: | Wed, 31 Aug 2011 13:20:51 +0000 |
| Subject: | RE: [PHP] Hide php action pages from google | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-314676@lists.php.net to get a copy of this message | ||
Merlin,
Do you have a robots.txt file in your root folder?
A text document named robots.txt in your document root containing the
following text
should solve your problem.
# robots.txt for http://www.yourdomain.com/
User-agent: *
Disallow: /subapp_search/search.php
User-Agent: Googlebot
Disallow: /subapp_search/search.php
More info here:
http://www.google.com/support/webmasters/bin/answer.py?answer=156449
Jen
-----Original Message-----
From: Merlin Morgenstern [mailto:merlin.morgenstern@googlemail.com]
Sent: Wednesday, August 31, 2011 7:39 AM
To: php-general@lists.php.net
Subject: [PHP] Hide php action pages from google
Hi there,
I do have a search form on my site which posts search queries to
follogin URL:
/subapp_search/search.php
Depending on the search parameters it will then redirect to the
appropriate URL. e.g.: /suche/labrador
I now discovered in google webmastertools that this very page
(search.php) is listed there as a reference for the speed of the whole
page with 2.7s.
This page should be irrelevant to google. Does somebody know how to hide
it from google? All redirects coming from there are 301s and the page
without parameters redirects to /
Thank you for any help on that,
Merlin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php