| | #1 |
| New Warrior Member War Room Member Join Date: 2007 Location: Ft Lauderdale, Florida
Posts: 7
Thanks: 3
Thanked 1 Time in 1 Post
|
Hi everyone, I am having an issue with the mobile redirect script with my latest client. I put the redirect script into the index.html file and when I type into the browser, www.MyClientWebsite.com, it will instantly redirect to m.ClientWebsite.com, which is what I need it to do. If however, I type in: MyClientWebsite.com , without the www, as many people do, it will not redirect at all and just goes to the main site. Anyone know what I am missing or how I can fix this? Thanks in advance for any help, Mike |
| |
| | #2 |
| www.MichaelKove.com War Room Member Join Date: 2007 Location: Miami Beach, FL
Posts: 142
Thanks: 7
Thanked 18 Times in 16 Posts
|
do you mind copying redirect script so we can take a peek? Depends on how you "check for mobile" device. Are you using Javascript to redirect? |
| |
| | #3 |
| Software Wizard War Room Member Join Date: 2011 Location: Pittsburgh, PA
Posts: 99
Thanks: 78
Thanked 141 Times in 78 Posts
|
Mike, I have code that does this and just shared my code with a fellow warrior who asked at this thread: http://www.warriorforum.com/programm...ct-script.html Send me a PM and i will send you the code that i am using to detect mobile users and redirect them to the mobile version of your site, it works nicely and even has a cookie preference if the user wants to view the full version of the site. Written in PHP. I use the code from the http://blog.mobileesp.com/ to detect mobile users. I highly recommend you taking a look at that site as well. |
| |
|
| Bookmarks |
| Tags |
| mobile, problem, redirect, site |
| |