我跳转方式是
<welcome-file-list>
    <welcome-file>default.jsp</welcome-file>
  </welcome-file-list>default.html里直接 <script type="text/javascript"> 
window.location.href="login!sel.action"; 
</script>对SEO有没影响?struts2貌似只能这么跳。
怎么做才能把SEO做好呢?

解决方案 »

  1.   

    login!sel.action
    这是什么啊 这么写不对吧 怎么还整个感叹号
      

  2.   

    使用伪静态技术    可以用urlrewrite   LZ可以去了解一下
      

  3.   

    不想使用伪静态,就想知道我这样跳转会影响SEO吗?
      

  4.   

    那样可以,也可以这么用
    把如下代码加入<head>区域中<meta http-equiv="refresh" content="1;url=<%=request.getContextPath()%>/login!sel.action">注:content="1 是时间控制,表示1秒后自动跳转到要跳转的页面.
          content="0 表示打开该页后立即跳转到你要跳转的页面.
          url=index.jsp 是要跳转的页面
      

  5.   

    不是可不可以的问题,,我想知道对SEO有没影响。
      

  6.   

    应该没有影响
    这里列出了一些要素,http://seoer.javaeye.com/blog/317532