Removed closing tag from all PHP files and added rewrite for homepage.