手机访问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版。。
$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版。。
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.怎么回事?
注释掉、试试
就可以显示当前的pc端页面了。