Forum Moderators: bakedjake
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
I have an include at the top of the page that gets the UA string, if it finds "smartphone" in it I serve out different content - that's on an ASP page.
I think the code was something like:
If(instr(Request.servervariables("HTTP_USER_AGENT", "SmartPhone")) then
response.redirect ....
end if
If you're targeting DoCoMo phones then it won't matter whether the pages are ASP or PHP. I've been able to access both with my phones. It really depends what you're comfortable with.
I found it really tough to keep up with all the new phone's user-agents, so instead of sniffing an alternative is to put the URI for your i-mode site at the top of the page and simply hide it with CSS. This means one more click for phone users.