Go Back   CodingForums.com > :: Client side development > General web building > Building for mobile devices

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-08-2010, 09:22 PM   PM User | #1
ndwest12
New Coder

 
Join Date: Sep 2009
Posts: 53
Thanks: 4
Thanked 0 Times in 0 Posts
ndwest12 is an unknown quantity at this point
What is the easiest way to redirect when on a mobile browser?

I've been searching all over google and the only thing that made relative sense was a .htacces rewrite rule. But that didn't work, it just errored out my wordpress site.

http://webdirect.no/mobile/apache-re...-iphone-users/

that was the one i tried out with no luck...

either way, there has got to be an easy code to just put into my index.php file that would redirect the site to www.mysite.com/mobile/index.html
ndwest12 is offline   Reply With Quote
Old 06-08-2010, 09:46 PM   PM User | #2
mlseim
Master Coder

 
mlseim's Avatar
 
Join Date: Jun 2003
Location: Cottage Grove, Minnesota
Posts: 9,046
Thanks: 8
Thanked 1,029 Times in 1,020 Posts
mlseim has a spectacular aura aboutmlseim has a spectacular aura aboutmlseim has a spectacular aura about
I've used this:
http://detectmobilebrowsers.mobi/

And it seems to work very good.
I think you can try it for free and test it out.
mlseim is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:36 PM.


Advertisement
Log in to turn off these ads.