Further to the issue: initially the WordPress address and the site address were slightly different. The WordPress address was /domain/wp and the site address /domain. This worked perfectly for a good few months until about two weeks ago. Not sure if this has anything to do with a WordPress update?
@salasio Thanks for the link. It worked.