Typhoid is spread through bad hygiene and contaminating food or water.
Typhus - there are three types - two of which are spread through rat fleas, the other through human lice.
Typhoid is also known as Salmonella typhi - which may be what your family have had.