mobile / Ipad Redirect
Jamroom Developers
Right, your trying to by-pass the routing system. don't.
Use the routing system to get what you want.
The routing system is really powerful if you use it.
did you look at the routing diagram? routing diagram
The first way that comes to mind to me is to just make one skin and use different sections, but that doesn't seam to be what you want to do, so the second thing I would think of would be:
using an include in the main section of the index template..... (hold on)
Why your redirect is not working is because that is not a location. When you want to access index.tpl, you dont go to:
yoursite.com/skins/myskin/
you go to
yoursite.com/
so do the same for your mobile.
make a template at:
/skins/myskin/m_index.tpl
Then with your javascript redirect point it to:
http://www.yoursite.com/m_index
That will get m_index displaying.
would that work for you?
updated by @michael: 11/09/13 01:26:48AM