Found the root cause of this issue. OOB Vanity URL's were not working because of internal sling mapping and dispatcher mapings. So as a solution we implemented custom vanity url path by appending the /content/site/locale path internally thorugh code and now OOB vanity urls are working.