not sure if this is the right place to ask, but....


New member
Feb 24, 2009
Visit site
I've created a web site using Joomla and want to l automatically redirect visitors who come by on their iphone to an iphone specific page. Easily done.

However, I want that iphone specific page to have links back to iphone friendly pages on the main site. Not so easy as Joomla links all pages through the index.php which has the redirect script on it.

For example, an iphone friendly video page might be or something.

I need a code that will allow me to go to this page without being redirected back to the iphone specific page. Can anyone help? Below is a piece of javascript code that used to work, but no longer does.....can anyone tell me what I need to change to make it work again? Or do I need to recreate the iphone friendly pages from scratch?

<script type="text/javascript">
if(document.referrer != ""){
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)))
if((navigator.appVersion.indexOf("Windows CE")>0))