code refactor
add rule to remove index.php