Geo-targetting: take a peek at Maxmind.com, they have plenty of examples how to use geolocation in your scripts. Mobile redirection: you can use the user-agent of the browser to redirect, or test for the screenresolution and decide if you're dealing with a mobile device or not.Check http://mobiledetect.net/You can also use Jquery to check for mobile devices.Or you can search for a CPA that does this for you.
Another great resource is stackoverflow.com, a lot of information about mobile detection and geotargetting.