Removed need for extra url logic in index.php