Yes, you can detect when an iPhone or iPod Touch is browsing your website, and direct them to an iPhone friendly version.
Just insert the following code in the header of your page and amend it to address your target (iPhone version) location.
UPDATED – As of iPhone Safari 2, the script isn’t accurate. The new Updated script is here.
Thanks to Chris Bailey at Used Boats for bringing this to attention and re-writing the script for us.
I’ve been irritated seeing websites that say “If you’re using an iPhone, click here” – C’mon, people don’t want to go through that and coders need to anticipate this. Seamless to users and polishes your project.