Housing Benefit is usually paid for the home you live in. You may still be able to get Housing Benefit if you are away from home for a short time, in Great Britain (England, Scotland and Wales) or abroad. For example, this could apply if you move into residential accommodation for a trial period.
You need to contact the housing benefit team before you go away from home, whatever the reason for your temporary absence.