mobile / Ipad Redirect
Jamroom Developers
I understand what your saying in your responce.
Let me explain in more detail whats going on.
I put this in the site myskin main index.tpl
<script type="text/javascript"> // <![CDATA[
if ((navigator.userAgent.indexOf('iPhone') != -1) || (navigator.userAgent.indexOf('iPod') != -1) || (navigator.userAgent.indexOf('iPad') != -1)) {
document.location = "http://www.yoursite.com/skins/myskin/mobile/";
} // ]]>
</script>
So when an Ipad hits my site it automatically redirects to /skins/myskin/mobile/index.tpl
Which is a copy of the entire /myskin/index.tpl with out the flash
* However... I have recieved this error.
Quote: You don't have permission to access /skins/myskin/mobile on this server
The files all have correct server permissions and so does the folder /mobile.
(1 - I assume this is somehow controlled by eather a htaccess
(2 - or somehow i have not asked for /mobile/ to be called by the Jamroom routing for that skin?
Im getting blocked from the page when i view it with the Ipad.
Ive got it to also open up that directory and use the skins/myskin/mobile/index.tpl if the device is Ipad but the screen only loads the script context not the actual "view" of the entire index.tpl
Feels like im just missing a simple concept to how this system works..
Thanks
updated by @developer-networks: 11/09/13 12:54:46AM