My English teacher told me that the expression
"It is not allowed to smoke here' isn't recommended to use.
I think it's the use of the infinitive (to smoke) which makes it sound awkward.
We might better say:
Smoking is not allowed here. Otherwise
You are not allowed to smoke here
It is not allowed for you/anyone/people to smoke in here