The site is running CNC, but Google is still crawling to scan links like /index.php?variable=value. From where he hawkes these links even I can not put my mind to it. Put the header location in case there is a "?" In the URL. Redirection works to this day, but this is not good for the site, because search engine climbs to index broken links instead of indexing what they say to him ...
In short, closer to the point. How to make a correct ban on the indexation of all that is after. Php?
Will the next solution be correct?
Disallow: /index.php *