手机访问ecshop网站时,如何与网页版一致,不让其跳转到/mobile啊,+_+,网上都是说删除根目录下index的一段跳转mobile判断,(如下)
$ua = strtolower($_SERVER['HTTP_USER_AGENT']);$uachar = "/(nokia|sony|ericsson|mot|samsung|sgh|lg|philips|panasonic|alcatel|lenovo|cldc|midp|mobile)/i";if(($ua == '' || preg_match($uachar, $ua))&& !strpos(strtolower($_SERVER['REQUEST_URI']),'wap'))
{
    $Loaction = 'mobile/';    if (!empty($Loaction))
    {
        ecs_header("Location: $Loaction\n");        exit;
    }}
我已删了,可是无效= =,很奇怪的是,访问ecshop自带的页面时都正常,与网页版一致,就是自己添加的页面就会跳转到/mobile,然后出现wap版。。

解决方案 »

  1.   

    后台wap设置里的wap功能关了吗
      

  2.   

    wap关了就无法显示网站了
      

  3.   

    有没有外网地址 或者你用的是哪个版本的ecshop
      

  4.   

    PC版正常,手机版不能访问
    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    More information about this error may be available in the server error log.怎么回事?
      

  5.   

    怎么改都行,千万别删除缓存文件否则你哭的心都有,楼主改的应该是对的要不你把moblile改成别的看看是不是也变
      

  6.   

    includes/init.php 初始化文件/* 载入手机版系统参数 */$_CFG_MOBILE = load_config_mobile();
    注释掉、试试
      

  7.   

    折腾了好几天, 今天终于解决了。 includes/init.php下 有一条pc_to_mobile();的函数,删掉他就好了。
    就可以显示当前的pc端页面了。