I have a homesite and a second site. They are displayed to normal browsers.
But I would like to show IOS and mobile devices the second site as homesite and hide the normal homesite.
How can I do this?
If the url's for both site is different, You can simply check if site is being viewed from mobile or not and than you can redirect to your second site if it is mobile...
Here is one of code who detects whether it is mobile or not...
You can use such code detect mobile browser agent and put it on first site and if mobile is detected redirect them to second site..
You can use a plugin like W3 Total Cache which has User Agent detection and can serve a different theme or redirect to a mobile site based on what browser a visitor is using.
WordPress has some more basic User Agent detection built in. You can target the iPhone with the
Here's a list of all the browser detection functions from the WordPress Codex.