fixed rewrite /public/index.php