|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 ![]() |
|
#2
|
|||
|
|||
|
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 ![]() |
|
#3
|
|||
|
|||
|
|
![]() |
| Viewing: Dev Shed Forums > Web Site Management > Scripts > Detect user agent script |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|