Hi How do I redirect a user browsing my a website on a cell phone automatically to a cell phone friendly site. Example: User find website 'www.xxx.com' on his cell. I want to redirect him automatically to 'm.yyy.com' website that is mobile phone friendly. Is there a script that does that or how do I do that? Thanx
I think you might find this is what you are looking for: WordPress Mobile Edition http://wordpress.org/extend/plugins/wordpress-mobile-edition/ I use it on some of my sites, and it requires a little bit of tweaking if you want to do anything elaborate...but delivers a pretty good 'mobile' interface right out of the box. Be sure to test that all the plugins you've activated work in both web and in this 'mobile' version or, at least, that the plugins do not break in the mobile version. Cheers, PhilD
here is a solution posted by another member on the same issue > http://forums.digitalpoint.com/showpost.php?p=12541584&postcount=3 hope it helps cheers
That code is good and answers Goldwing's question better than mine as it actually redirects to a new url, whereas the "mobile theme" I posted, will use the SAME wordpress installation, with the same content, but just a different presentation (a mobile-compatible theme). I guess its upto GoldWing whether he wants to setup a completely different wordpress installation, but somehow synchronize them to have the same content (not easy to configure) or to simply have a different mobile-friendly theme. Cheers.
Detecting user-agent is the only way to redirect, however for some sets if useragent value is not passed, this would not work. You would often see similar examples using javascripts also where pages are redirected / served based on web browser version, so what you see on FF is not the same as you would get served on IE.
Well, I dont have a Wordpress or any other PHP based system. Everything is straight HTML. So maybe there is a Java redirect script. Anybody?
You can definitely code something in javascript that will do the job. But the only issue is that many mobile browsers do not support javascript, and those that do give the the user the option of turning off javascript, preventing the script from ever executing.
I believe the basis for any mobile redirect is checking to see if the user's screen size is smaller than 700px. You can use javascript to check for the user's screen size. Mobify.me is also a great service. .. Craig Maclean
Craingmaclean - Im not really strong with javascript. What script are you using. Can you PM me with the script.