I've built a cool mobile website/app using JQuery Mobile. I want to offer that to clients, but I want to use my own hosting.
Here's what I want to do
If a user uses a mobile device to visit
client.com, I want them to see the contents of
If a mobile user visits
client.com/something, I want them to see
- The browser should still show the url on
client.comor at least
- The redirect should not break Jquery Mobile (therefore iFrames are out of the question)
Here's what I've come up with
I've thought of something, but I'm not sure if it's going to work and IF it's going to work, whether it's a good solution.
m.client.comwould redirect to
m.mysite.comwould point to
?app=1would be appended by PHP.
I'm not even sure if that's going to work, and it requires too much effort for my clients.
What would be the best way to do such a thing?