模块中出现两次元标签是否会损害我的 SEO?

发布于 2024-11-27 04:01:20 字数 1881 浏览 3 评论 0原文

我在我的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?我已经在搜索引擎中建立了很好的索引,并且不想破坏这一点。谢谢。 `

I have my metatags hand coded in my index.php(page.tpl.php in drupal). Now, I want to use a module called "nodewords" that allows metatags in every individual page; as opposed to just the index page for the whole site. But, now it outputs it as something like this:

<!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"/> 

Notice that the metatags are listed twice. Once for the main index(listed on every page), and once for the module including it for the individual page. My question is, does this hurt my SEO by having it twice? I already am pretty well indexed my the search engines and wouldn't want to jeopardize that. Thank you.
`

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

梦境 2024-12-04 04:01:20

您的 HTML 代码显然非常无效,并且担心 SEO?我首先会担心我的网站能否正确呈现。谁知道众多的浏览器会对这样糟糕的代码做出什么反应。

但要回答您的问题,元标记不再用于排名目的,因此这不会损害您的排名。但是,由于描述元标记可以用作页面排名中的片段,因此如果您有其中两个,您将不知道搜索引擎将如何对其做出反应。您可能不会得到任何描述或描述很差,因为搜索引擎可能只是使用您页面中的随机片段。

底线:修复您的 HTML,以便只有一个

You have clearly very invalid HTML code and you're worried about SEO? I'd worry about my site rendering properly first. Who knows how the numerous browsers out there will react to poorly constructed code like that.

But to answer your question, meta tags are not used for ranking purposes anymore so this won't hurt your rankings. However, because the description meta tag can be used as your snippet in your pages' rankings, if you have two of them you don't know how the search engines will react to it. You may get no description or a poor one as the search engines may just use a random snippet from your page.

Bottom line: fix your HTML so there is only one <html> and <head>.

月下客 2024-12-04 04:01:20

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

As mentioned above it can hurt your ranking. You should definitely remove any meta tags hardcoded via the HTML and manually assign them via Nodewords.

扛起拖把扫天下 2024-12-04 04:01:20

尽管元标记没有像以前那样具有当今的索引值,但您最好只使用一组。

You're better off with only one set although Meta tags don't have anything like the indexing value today that they used to.

凡尘雨 2024-12-04 04:01:20

发现这个:

误区 6:“如果我在评论标签中重复我的关键字和描述,我的排名会更好。”

曾经有一段时间,这种技术在搜索引擎中很流行,搜索引擎可能会读取评论标签并为其建立索引。今天我们知道,避免使用代码会更安全,因为它们可能会被误解为垃圾邮件。无需重复您的标签。

here. From what I've seen it may classify as spam then.

Found this:

Myth 6: "If I repeat my Keywords and Descriptions in a comment tag I will rank better."

There was a time when this technique was in vogue for search engines, which may have read and indexed comment tags. Today we know that it's safer to refrain from code, which may be misconstrued as spam. There is no need to repeat your tags.

here. From what I've seen it may classify as spam then.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文