Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb Site ManagementScripts

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old November 22nd, 2004, 11:19 AM
WayneMac WayneMac is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 4 WayneMac User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Smile Detect user agent script

Gidday all, Im trying to have users access my site using the same URL by either PC or mobilephone...PC to phpwebsite folder and mobilephones to mobile folder.

I know the user agent arrays but just cant get anything to work. Then again I dont know whether to put what I have into htaccess or index.php/html.

Does anyone know the answers? Any advice, code, help would be appreciated.

Thanx, Wayne in Japan

Reply With Quote
  #2  
Old November 22nd, 2004, 12:34 PM
WayneMac WayneMac is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 4 WayneMac User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Got it

Added to .htaccess

RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^DoCoMo [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^J-PHONE [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^KDDI [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^UP.Browser [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^DDIPOCKET [NC]
RewriteRule ^.*$ http://www.fukuokaguide.com/mobile/index.html [L]

and created a .htaccess in /Mobile to set RewriteEngine off command.

Wayne

Reply With Quote
  #3  
Old November 28th, 2004, 12:54 PM
dkaitouni dkaitouni is offline
Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 27 dkaitouni User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementScripts > Detect user agent script


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway