I have followed steps provided at following knowledge article to setup a Custom domain for communities
After properly setting up the CNAME, salesforce was able to search for the CNAME and successfully saved the Domain. I have also created the custom URL to setup the community linking with the domain.
However, now when I enter the custom domain url i.e. www.abc.pqr.com, instead of maintaining the URL masking, it is redirecting to the community URL i.e. https://abc.force.com.
Am I missing anything??