Redirect exception for localhost