Fixed url bug in rules.php