Prostration in Islam, prostrating to anyone other than Allah, any attempt in doing this either the way of greeting it is unacceptable, is the act of disbelief and shirk. if it is done by way of greeting, mean while, prostration is an act of worship and it is not acceptable to direct it towards anyone other than subhanolai WataAllah.
As Revealed in the book of (Ahmad), The Messager of Allah (SAW) said: “it’s not in anyway right for any human being to prostrate to another; if it were right for one human being to prostrate to another, I would have commanded women to prostrate to their husbands, because the have slots of right over their wives.
By the One in Whose hand is my soul, if a man were covered from head to foot with weeping sores oozing pus, and his wife were to come to him and lick his sores (to clean them), this would not fulfil the rights he has over her.”
But Allah no the best.