Update rule.php