This is a sample project that illustrates how you can open your iOS app from a url in your website. I wrote it to answer the following question posted in stack overflow
Clone the project, build the app and install it in your iOS device.
Once you have the app in your iOS device, open this webpage with mobile safari and click on the link below to open the app:
From the iOS app, click on the button and you should be taken back to this page.