RE: Hide php action pages from google

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx] 
Sent: Wednesday, August 31, 2011 7:39 AM
To: php-general@xxxxxxxxxxxxx
Subject:  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




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux