【问题标题】:Will metatags coming up twice with module hurt my SEO?模块中出现两次元标记会伤害我的 SEO 吗?
【发布时间】:2011-07-29 17:33:32
【问题描述】:

我在 index.php(drupal 中的 page.tpl.php)中手动编码了元标记。现在,我想使用一个名为“nodewords”的模块,它允许在每个单独的页面中添加元标记;而不仅仅是整个网站的索引页面。但是,现在它输出如下:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"> 

<meta name="Description" content="Hollywood Nose has before and after plastic surgery of all hollywood stars, people/celebrities who should have plastic surgery, celebrity nose jobs, breast augmentation, hairpieces, face lifts, liposuction, and more.  Plastic surgery information includes: forums on top plastic surgeons, patient surgery experiences, the best doctors, and more."> 
<meta name="Keywords" content="Plastic surgery, plastic surgeons, noses, Hollywood, surgeons, Hollywood nose jobs, Hollywood plastic surgery, celebrity hair pieces, celebrity face lift, before and after, plastic surgery, plastic surgeons, best doctors, implants, breast augmentation, celebrity breast implants, hair piece, rhynoplasty, hollywood facelift">    

<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
 <title>Hollywood Nose</title> 
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<meta name="keywords" content="Alicia Keys, nose job, rhinoplasty, plastic surgery, before and after, musician, celebrity., Nose Jobs" /> 
<meta name="description" content="Alicia Keys nose job plastic surgery before and after.  See Alicia Keys when she was young with her original nose and later on after her rhinoplasty." /> 
<meta property="fb:app_id" content="http://www.facebook.com/pages/Hollywood-Nose/199540186756971"/> 

请注意,元标记列出了两次。一次用于主索引(在每个页面上列出),一次用于包含它的模块,用于单个页面。我的问题是,这是否会因为两次而伤害我的 SEO?我已经很好地索引了我的搜索引擎,并且不想危及它。谢谢你。 `

【问题讨论】:

  • 老实说,该网站的设计令人毛骨悚然。

标签: html drupal seo drupal-modules


【解决方案1】:

您的 HTML 代码显然非常无效,并且您担心 SEO?我会首先担心我的网站渲染是否正确。谁知道那里的众多浏览器会对这种结构不佳的代码做出什么反应。

但是为了回答您的问题,元标签不再用于排名目的,因此这不会影响您的排名。但是,因为描述元标记可以用作您的页面排名中的 sn-p,如果您有其中两个,您不知道搜索引擎会如何反应。由于搜索引擎可能只是使用您页面中的随机 sn-p,您可能没有得到任何描述或描述不佳。

底线:修复您的 HTML,以便只有一个 &lt;html&gt;&lt;head&gt;

【讨论】:

  • 感谢您的回复。我试图将该 Facebook 密钥链接到 html 标头以记录 LIKE 计数,但它没有呈现。所以,我把它放在 HTML xmlns 的下面。那也没有用。所以,这就是为什么它在那里。我现在已经删除了它,虽然看到计数仍然不起作用。但是,感谢您对此的回应。在 drupal 中,page.tpl.php 用于每个页面,因此您需要一个模块来将元标记放在每个单独的页面上。我害怕从 page.tpl.php 中省略它并将其移动到模块中,因此它只呈现在首页上。我担心这个过程会伤害 SEO。
【解决方案2】:

如上所述,它可能损害您的排名。您绝对应该删除任何通过 HTML 硬编码的元标记,并通过 Nodewords 手动分配它们。

【讨论】:

    【解决方案3】:

    您最好只使用一组,尽管元标签不像现在的索引值那样有任何东西。

    【讨论】:

    • 好吧,如果我从 index.php 中删除它们并在 page-front.tpl.php 中替换它们,然后将它们手动放入每个页面......这会暂时伤害我的 SEO 吗?这就是我害怕的。因为大约 2 个月后,它终于在 Alexa 排名中真正上升了。
    • @Graham 我现在很忙,但稍后会回复您。这是一个我相信我非常了解并很高兴与您分享的领域。
    【解决方案4】:

    发现这个:

    误区 6:“如果我在评论标签中重复我的关键词和描述,我的排名会更好。”
    曾经有一段时间,这种技术在搜索引擎中很流行,它可能已经阅读并索引了评论标签。今天,我们知道避免代码更安全,因为代码可能会被误解为垃圾邮件。无需重复您的标签。
    here。从我所看到的情况来看,它可能会被归类为垃圾邮件。

    【讨论】:

      猜你喜欢
      • 2012-01-10
      • 1970-01-01
      • 2015-05-28
      • 1970-01-01
      • 1970-01-01
      • 2011-02-23
      • 1970-01-01
      • 2016-07-05
      • 1970-01-01
      相关资源
      最近更新 更多