Mapped domain redirects to the main domain

Access details in chat.

I have an issue with subdirectory domain mapping. It is not working. The subdirectory redirects.
Example:
main site: http://www.mydomain.com
subsite: http://www.mydomain/abc (this sites redirects to the main site)