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