catch index as index and all else as 404