handle 404 whilst examining URL