Surfing internet on smart phone is a new trend and competitive for all Social Media Website and WordPress Blog Developers. A website’s efficiency is directly proportional to its compatibility with the client-side web browser like Internet Explorer, Mozilla Firefox, Google Chrome, Opera etc. A web project is successful only when it is able to surpass cross-browser compatibility issue.
Well, as I mentioned earlier about the smart phones, 25-30% of visitors are using social media sites on phone browsers as per the Web Statistics using various Analytics Tool available online. Hence, many wordpress blogs and other social media website, faces design issues, compatibility issues, bandwidth issues and platform problems on phone browsers.
I recently wrote an article on How to detect iPhone Browser and Redirection using htaccess ? which briefs you about how to redirect your visitor using an iPhone Browser to the mobile version website, using htaccess file hosted with Apache Server. So being not iPhone specific, there are a lot many phone browsers, like Mozilla, Nokia, BlackBerry, Opera Mni, Palm OS, Windows CE etc. for which .htaccess file should be edited accordingly for perfection.
Below is modified version .htaccess code of my last article for the multiple phone browser used worldwide with updated http_user_agent, for your WordPress Blogs.
Note: Before attempting any changes, kindly back-up your WordPress Files and Database, for quick restoration.
1: #Detect and redirect Phone Browser
2: RewriteEngine On
3: RewriteCond %{HTTP_USER_AGENT} iPhone
4: RewriteCond %{HTTP_USER_AGENT} Windows CE
5: RewriteCond %{HTTP_USER_AGENT} BlackBerry
6: RewriteCond %{HTTP_USER_AGENT} NetFront
7: RewriteCond %{HTTP_USER_AGENT} Opera Mini
8: RewriteCond %{HTTP_USER_AGENT} Palm OS
9: RewriteCond %{HTTP_USER_AGENT} Blazer
10: RewriteCond %{HTTP_USER_AGENT} Elaine
11: RewriteCond %{HTTP_USER_AGENT} ^WAP.*$
12: RewriteCond %{HTTP_USER_AGENT} Plucker
13: RewriteCond %{HTTP_USER_AGENT} AvantGo
14: RewriteCond %{HTTP_USER_AGENT} Nokia
15: RewriteRule .* http://mob.yourdomain.com/ [R]
16: #End of Code
The above code is similar to the earlier one, but multiple lines are added for HTTP_USER_AGENT of different phone browsers. For instance, http_user_agent for Nokia mobile is %{HTTP_USER_AGENT}% Nokia
For any queries or further assistance required, post comment as your feedback.