Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

assassin11

Pioneers
  • Posts

    2
  • Joined

  • Last visited

Everything posted by assassin11

  1. Thanks wflynn but I found I think the easiest solution and most reliable, I add this code in to .htaccess file: ///////////////////////////// # don't apply the rules if you're already in the mobile directory, infintine loop # you'll want to test against the host if you're using a subdomain RewriteCond %{REQUEST_URI} !^/mobile_catalogue.php.*$ # if the browser accepts these mime-types, it's definitely mobile, or pretending to be RewriteCond %{HTTP_ACCEPT} "text\/vnd\.wap\.wml|application\/vnd\.wap\.xhtml\+xml" [NC,OR] # a bunch of user agent tests RewriteCond %{HTTP_USER_AGENT} "sony|symbian|nokia|samsung|mobile|windows ce|epoc|opera" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "mini|nitro|j2me|midp-|cldc-|netfront|mot|up\.browser|up\.link|audiovox"[NC,OR] RewriteCond %{HTTP_USER_AGENT} "blackberry|ericsson,|panasonic|philips|sanyo|sharp|sie-"[NC,OR] RewriteCond %{HTTP_USER_AGENT} "portalmmm|blazer|avantgo|danger|palm|series60|palmsource|pocketpc"[NC,OR] RewriteCond %{HTTP_USER_AGENT} "smartphone|rover|ipaq|au-mic,|alcatel|ericy|vodafone\/|wap1\.|wap2\.|iPhone|android"[NC] RewriteCond %{REQUEST_URI} ^/$ RewriteRule ^$ /mobile_catalogue.php [L,R=302] ////////////////////////// I change just RewriteRule and RewriteCond to my mobile file that should show up at the begining, this is it.
  2. Did anybody have any luck with automatic redirecton for mobile browsers? I add this at the end of catalog/includes/application_top.php //BEGIN : MOBILE iOSC REDIRECT_SCRIPT require_once(DIR_WS_FUNCTIONS . 'iosc.php'); //END : MOBILE iOSC REDIRECT_SCRIPT when Im going to www.mydomainname.com on my PC simply takes me to the mobile site instead (pc version) Thanks for your help ---------- --------------
×
×
  • Create New...