Forum Moderators: goodroi
GET http://www.example.com/bookingform.php?property=nameofproperty
301 Moved Permanently
Location: http://www.example.com/nameofproperty.php
part of the solution is to redirect with a HTTP response using a 301 status code and a Location: header.
like this:
GET http://www.example.com/bookingform.php?property=nameofproperty
301 Moved Permanently
Location: http://www.example.com/nameofproperty.php
assuming your server is apache you can use mod_rewrite to look for these patterns with regular expressions and RewriteCond/RewriteRule directives.
you should even be able to find examples of rewriting parameter values to php files in the apache forum on WebmasterWorld.
the other part of the solution is to refer to the canonical url from the booking form.
if you use the disallow in robots.txt the search engine will never see the redirect to the canonical url and the non-canonical url will likely get indexed without a snippet.
Do you want to add the 55 that are not indexed, or get rid of the 45 that are? Maybe g### thinks things are OK because those 45 different properties lead to 45 different pages. By google standards that is not a huge number.
As I understand it, the parameters tool is for getting rid of parameters that don't affect the content of the page. Or garbage parameters that will always create something even if you feed in a ridiculous value.
If you tell google to exclude the propriedades, will there be anything left of the page? That is, can the page be created without this parameter? Is that page worth indexing?
you need to add the following to the head of the documents returned by the bookingform.php urls:
<meta name="robots" content="noindex">
and then remove the disallow in robots.txt - otherwise the search engine will never see the noindex directive and the url will likely get indexed without a snippet.
added after edit:
add the urls you meta-robots-indexed to the sitemap xml file until they get recrawled and dropped from the index.