changed syntax of rewrite.php to be more generic
added .gitignore