Just discovered the easiest solution:
Do nothing to the main site's index.php. In the mobile site, the code should look like:
<a href="http://www.yourmainsite.com/index.html">View Full Site</a>