【发布时间】:2013-09-04 17:19:25
【问题描述】:
如果请求来自移动设备,我想将我的移动网站用户重定向到移动特定页面。我可以在 JS 中的 HTML Head 标签附近编写下面的代码来解决这个问题。
if(Check UserAgent is Mobile)
{
mobile=true;
window.location.assign("http://abc.com"+"&mobile="+mobile);
}
如果移动参数在 HTTP 参数中可用,那么我可以实现某些逻辑。
它会导致任何问题 w.r.t.搜索引擎优化?
谢谢!
【问题讨论】:
-
我的问题与stackoverflow.com/questions/8300480/… 非常相似,但如果我们使用这种方法,我需要了解对 SEO 的影响。
标签: javascript redirect mobile web seo