|
|
You could do as darrel has suggested and but if you want automatic redirection
the you want to put a script in place that detects what useragent a browser is
using. Below are some. the WURFL database will give you huge list of useragents.
IE 6 .0 on Windows XP SP2 with .NET Framework 1.1 installed: Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
IE7 beta running on Windows Vista ? Mozilla/4.0 (compatible; MSIE 7.0b;
Windows NT 6.0)
Firefox 1.5b1 on Windows XP ? Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.8b4) Gecko/20050908 Firefox/1.4
Opera 8.51 on Windows XP ? Opera/8.51 (Windows NT 5.1; U; en)
Pocket PC IE on Windows Mobile 2003 ? Mozilla/4.0 (compatible; MSIE 4.01;
Windows CE; PPC; 240x320
Nokia 6230 Mobile Phone:
Nokia6230/2.0+(04.43)+Profile/MIDP-2.0+Configuration/CLDC-1.1+UP.Link/6.3.0.0.0
You will need to use ASP which is server-side detection rather than javascript
with alot of mobile phones have trouble with.
You could try this code below, though you wil need a large list of user
agents:
<%
userAgent = Request.ServerVariables("HTTP_USER_AGENT")
isMobile = false
if((InStr(userAgent, "AvantGo") > 0) OR (InStr(userAgent, "Windows CE") > 0)
OR (InStr(userAgent, "NetFront") > 0) OR (InStr(userAgent, "BlackBerry") > 0) )
then
isMobile = true
end if
if isMobile then
response.redirect("http://www.namesandnumbers.com/mobile")
end if
%>
Hope this helps
regards
Paul
|
|