iphone divert question (template related)!!

Professional Jomal template designed to be easily adaptable to all kinds of business
GK User
Wed Aug 04, 2010 2:39 pm
How can i divert iphone and mobile visitors to a certain url instead of the gavick version, even when i turn off the gavick versions it still diverts to them and my usually htaccess method below doesnt work because the gavick stuff takes priority

### MOBILE SITE RULES ###
RewriteCond %{HTTP_USER_AGENT} ^.*iPhone.*$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^.*BlackBerry.*$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^.*Palm.*$
RewriteRule ^(.*)$ http://*********** [L,NC,R=301]
### MOBILE SITE RULES ###


please help
User avatar
Fresh Boarder

teitbite
Thu Aug 05, 2010 1:38 am
Hi

I would suggest using a simple js script to redirect the site:

Code: Select all
   onload="setTimeout('window.location.href = "[URL]"', 1)";
User avatar
Moderator


cron