Without the actual URL that you are having difficulties with, it’s hard to answer.
But, I suspect that the URL really doesn’t exist. Which is why you get a ‘404’ not found error.
If you edit your question to include the actual URL (put it in a ‘code’ block), you might get a more specific answer.