搜外网>搜外问答>问答页面

请教关于频次PC/移动页面说明与跳转的问题

PC站与移动站不是自适应站点
问题一:
是不是需要使用Meta标签协议规范?
<meta name="applicable-device" content="pc">
<meta name="applicable-device"content="mobile">
-----------------------------------------------------------------------------------------------
问题二:
标签说明后能不能使用跳转,来使PC或移动页面在相对的平台能正常展示?

移动站:
<script>
var url = window.location.pathname;
var wapurl="PC网址"
if(!/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) {
    window.location.href =wapurl
}
</script>
-------------------------------------------------------------------------------------------------
PC站:
<script>
        uaredirect()
        function uaredirect() {
            if ((navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i))) {
                var URl = window.location.pathname;
                var u = "移动站网址"
                location.replace(u)
            }
        }
    </script>

--------------------------------------------------------------------------------------------------
欢迎大佬指点,萌新跪谢并学习

追加问题
    0 人参与回答
该问题还没有收到回答 :(
SEO培训招生中
189