@akash47 did you read the docs link marked as the solution in that topic? You shouldn’t be editing core files, you should add a robots.txt to your theme and use the admin to upload it so that caches etc are cleared properly
Hi Kevin,
I did read the document (ok, skimmed it ) - but my first takeaway was that it is for people who want to customize their Casper theme - I was happy with stock.