| Forums | Active Topics | [Click to Join Our Forums] | Cell Sites Gallery | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
| | LinkBack | Thread Tools | Search this Thread |
| | #1 (permalink) |
| Shoulda joined long ago! Join Date: Aug 2006 Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
Certain sites I've noticed have some type of code so that if you visit their website via your mobile phone, it will immediately take you to their mobile friendly pages. For example, if I go to www.cnn.com on my computer, it gives me a very elaborate site, however if I go to the same address on my phone, it automatically opens as the mobile version of their site. I have tried adding a certain line in my .htaccess file that defines the mobile page as the index page...but then that messes up when it is viewed via a computer. Any help?
|
| | |
| | #2 (permalink) |
| Software Architect Join Date: Jun 2006 Location: Atlanta, GA Posts: 1,610
Phone(s): Blackberry Pearl, Samsung Katalyst Provider(s): Verizon Devices: Moto H700, Dell Inspirion 1521, LT-20 GPS Thanks: 0
Thanked 0 Times in 0 Posts
Images: 4 |
I haven't personally looked at it, but I would chanceably argue that this is a browser check, checking for the known wap browsers and then redirecting.
|
| | |
| | #3 (permalink) |
| Shoulda joined long ago! Join Date: Aug 2006 Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
After some research, I have found that it is indeed a browser redirct code, but I have yet to find something that works. I have seen the following code recommended several times, but when I put it into my .htaccess, I always get an internal server error message...both on my mobile and computer: RewriteEngine On RewriteCond %{HTTP_USER_AGENT} “Windows CE” [NC,OR] #Windows CE and Pocket PC RewriteCond %{HTTP_USER_AGENT} “Opera Mini” [NC,OR] #Opera Mini RewriteCond %{HTTP_USER_AGENT} “NetFront” [NC,OR] #PalmSource WebBrowser 2.0 RewriteCond %{HTTP_USER_AGENT} “Palm OS” [NC,OR] #Eudora Web Browser for Palm RewriteCond %{HTTP_USER_AGENT} “Blazer” [NC,OR] #Handspring Blazer Browser RewriteCond %{HTTP_USER_AGENT} “Elaine” [NC,OR] #RIM Devices RewriteCond %{HTTP_USER_AGENT} “^WAP.*$” [NC,OR] #WAP Browsers RewriteCond %{HTTP_USER_AGENT} “Plucker” [NC,OR] #Plucker Offline download client RewriteCond %{HTTP_USER_AGENT} “AvantGo” [NC] #AvantGo Service RewriteRule ^index\.php http://www.yourdomain.com/mobile/index.html [L,R] Any ideas? |
| | |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
|
|
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| In-Building Coverage | sashank19 | GENERAL Wireless Discussion | 7 | 04-11-2006 9:07 PM |
| Wap Site Building Tool For Non-Techies | WINKsite | Wireless News | 0 | 12-12-2002 1:39 PM |