Tag Archives: Wap2

Server side redirect for mobile/handheld users

Greetings All I’ve been looking into an effective way to redirect people accessing a niche site via handheld devices, to a focused page for mobile or portable users. I’ve found sources teaching me how to accomplish this via javascript and php, but post wondered if anybody knew a server side way eg via htaccess file I have only until now found this : but unsure of the way to use it or whether this is actually the way to take action: (http: //www. alistapart. com/articles/return-of-the-mobile-stylesheet) (I understand that recently there’s recently been news that Google advises to never redirect and to help keep people on the identical url, but for this purpose, i do desire to redirect them) Thank you! Here’s an added complete version. Stylesheet type: Put this in a file called ". htaccess" and save that file from the directory with your primary css file (presumably identified as style. css). There it is possible to create a separate file called cellular. css for cellular devices. Code: RewriteCond %REQUEST_URI! /mobiledirectoryhere/. *$ RewriteCond %HTTP_ACCEPT " text\/vnd\. wap\. wmlapplication\/vnd\. wap\. xhtml\+xml" NC, AND ALSO RewriteCond %HTTP_USER_AGENT " sonysymbiannokiasamsungmobilewindows ceepocopera" NC, AND ALSO RewriteCond %HTTP_USER_AGENT " mininitroj2memidp-cldc-netfrontmotup\. browserup\. linkaudiovox" NC, AND ALSO … Continue reading

Posted in Web Design | Tagged , , , , , , , , , , , , , , , , , , , | Leave a comment