Back in the day when the release of iPhone OS 2.0 came the ability to link to apps in the app store from websites, however this was effectively broken by the 2.1 update which came out shortly thereafter. In talking with Chris from iWebKit I came across a post on the iPhoneWebDev board from Romain about a simple modification which will re-enable support for direct links to app store apps.
To add a link to an app from your website (supported from iOS 2.2 up), you will need to use the updated itunes.com url scheme instead of the phobos.apple.com.
The link should be formatted as follows:
<a href="http://itunes.apple.com/us/app/ocarina/id293053479?mt=8">App Name</a>
Where “App Name” is the app you wish to link to. Thats all there is to it. This should be supported by iPhones running OS 2.1+. Let me know if you have any comments.



Tried the code. Would not work. Any ideas why?
Apple updated the way the links were setup. I’ve updated the code example above.