function robotstxt_update_7101 in RobotsTxt 7
Allow crawling of 'contact' folder by search engines, don't disallow it.
File
- ./
robotstxt.install, line 108 - Install, update and uninstall functions for the robotstxt module.
Code
function robotstxt_update_7101() {
// Case #905576.
$robotstxt = variable_get('robotstxt');
$robotstxt = preg_replace("/Disallow:\\s\\/(\\?q=)?contact\\/(\r\n?|\n)/", '', $robotstxt);
variable_set('robotstxt', $robotstxt);
return t("Removed 'contact' folder from crawling exclusion list.");
}