I'm requesting you to do it .
I'm requesting you not to do it.
Both make sense. The second one doesn't mean that "I'm not requesting you to it" rather it talks about prohibition. But,
You have to do it.
You have not to do it.
Why does this sentence mean " You don't have to do it"? Rather it should mean that " You're forbidden to do it".
I'm not a native English speaker. Maybe that's why I'm missing something. Please clarify with proper explanations.