I am not being able to get the second redirect to work. To make matters worse, the URLs for my second redirect is of the same name and structure. Please see the note below to understand the real problem.
Note : The folder for www.example.com and subdomain.example.com is the same. So both main domain and subdomian share same data as well as same .htaccess file.