What's described in the link is not an absolute rule. It all depends on the circumstances of the parties. The court can make any order it thinks fit. It is true that, in many cases, it seems right to the court that the wife remain in the former matrimonial home with the children, because in many cases that is something which the husband's needs and finances can bear. But in some cases it might be quite ridiculous; the house might be the only asset yet vast, very valuable, far larger than any woman with a child would ever need and the husband might need to have access to the equity in it.
Your duty to maintain the child remains wherever the child is living.
So you definitely need the help of a solicitor who specialises in "Family Law". These matters can get quite complicated