Ignore:
Timestamp:
2008/02/28 17:50:37 (16 years ago)
Author:
satou
Message:

#246 PC用アドレスにモバイルでアクセスした場合の遷移エラーを改修

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2/html/require.php

    r16994 r17093  
    8686// 携帯端末の場合は mobile 以下へリダイレクトする。 
    8787if (SC_MobileUserAgent::isMobile()) { 
     88    $url = ""; 
     89    if (SC_Utils_Ex::sfIsHTTPS()) { 
     90        $url = MOBILE_SSL_URL; 
     91    } else { 
     92        $url = MOBILE_SITE_URL; 
     93    } 
     94     
    8895    if (preg_match('|^' . URL_DIR . '(.*)$|', $_SERVER['REQUEST_URI'], $matches)) { 
    8996        $path = $matches[1]; 
     
    9198        $path = ''; 
    9299    } 
    93  
    94     $url = ""; 
    95     if (SC_Utils_Ex::sfIsHTTPS()) { 
    96         $url = SSL_URL; 
    97     } else { 
    98         $url = SITE_URL; 
    99     } 
    100     header("Location: " 
    101            .  SC_Utils_Ex::sfRmDupSlash($url . URL_DIR . "mobile/" . $path)); 
     100     
     101    header("Location: ". SC_Utils_Ex::sfRmDupSlash($url . $path)); 
    102102    exit; 
    103103} 
Note: See TracChangeset for help on using the changeset viewer.