How to use domain mapping? Will this work if the url of my subsite is like http://mainsite.com/subsi

How to use domain mapping? Will this work if the url of my subsite is like http://mainsite.com/subsite?