[Domain Mapping] Subsites are redirecting to main site

Recently sites with mapped domains have started to redirect to main site, keeping the path part of the URL intact.