What is the ruling on wiping the white area behind the ears instead of wiping the head?
The obligation in ablution is to wipe some of the head; it is not a condition to wipe all of it. Wiping the white area behind the ears suffices for that. And Allah the almighty knows best.
What is the ruling on wiping the front of the head beneath the ḥijāb, and is it permissible to wipe over the ḥijāb if it was put on while in a state of purification (wudu`)?
All praise is due to Allah, and peace and blessings be upon our master the Messenger of Allah ﷺ.
It is permissible to wipe the front portion of the head (nāṣiyah) with the fingertips. It is likewise sufficient to place a wet hand over a head covering (ḥijāb), provided the moisture actually reaches the hair beneath it — if it does not, it does not suffice. A head covering is not treated in the same manner as leather socks (khuff) and may not be wiped over in lieu of the head itself.
Imām al-Nawawī, may Allah have mercy upon him, states in al-Majmūʿ (Vol.1/P.407): "If a person is wearing a turban and does not wish to remove it — whether for a valid reason or otherwise — he should wipe the entire front portion of the head... The same ruling applies to whatever a woman wears on her head. If, however, he confines himself to wiping over the turban without wiping any part of the head itself, this does not suffice — and there is no disagreement among us on this point." He further states: "A woman is like a man in the manner of wiping the head... She should insert her hand beneath her head covering so that the wiping falls upon the hair itself. If she places her wet hand over her head covering, our scholars stated: if the moisture does not reach the hair, it does not suffice her." And Allah the Almighty knows best.
What is the ruling of Islamic Law on sitting between the two prostrations, and what is the ruling on the dhikr recited during it?
Praise be to Allah, and peace and blessings upon our master, the Messenger of Allah.
Sitting between the two prostrations (al-jalsah bayna al-sajdatayn) is one of the pillars (arkān) of the prayer, while the dhikr recited during it is Sunnah according to the Shāfi'ī scholars. It is recommended (mustahabb) to say what was narrated from Ibn 'Abbās (may Allah be pleased with him), who said: "The Messenger of Allah (peace and blessings be upon him) used to say between the two prostrations in the night prayer: 'Rabbi ighfir lī, warhamnī, wajburnī, warzuqnī, warfa'nī' (My Lord, forgive me, have mercy on me, make good my deficiencies, provide for me, and raise me)." If one were to say a different supplication instead, such as "Rabbi ighfir lī" (My Lord, forgive me), the prayer would still be valid.
If the worshipper omits this dhikr between the two prostrations, whether intentionally or out of forgetfulness, their prayer remains valid and nothing is required of them, though they miss the reward of following the Sunnah. Leaving it out does not necessitate the prostration of forgetfulness (sujūd al-sahw).
It is stated in Hāshiyat al-Bājūrī 'alā Sharḥ Ibn Qāsim 'alā Matn Abī Shujā' (Vol.1/P.298): "The eleventh — i.e., of the eighteen pillars — his statement: 'sitting between the two prostrations,' meaning even in a supererogatory (nafl) prayer... his statement: 'with the supplication that has been narrated concerning it,' meaning: 'Rabbi ighfir lī, warhamnī, wajburnī, warfa'nī, warzuqnī, wahdinī, wa 'āfinī' (My Lord, forgive me, have mercy on me, make good my deficiencies, raise me, provide for me, guide me, and grant me well-being). Al-Ghazālī added: 'wa'fu 'annī' (and pardon me). Al-Mutawallī also added: 'Rabbi hab lī qalban taqiyyan, naqiyyan min al-shirk, bariyyan lā kāfiran wa lā shaqiyyan' (My Lord, grant me a heart that is God-fearing, pure from associating partners with You, innocent, neither disbelieving nor wretched)."And Allah, the Most High, knows best.
What is the ruling if someone wipes his head then shaves it - must he repeat it?
If a person performing ablution shaves his head after wiping it during ablution, he is not required to re-wipe his head or repeat the ablution. And Allah the Almighty knows best.