URL重写:添加关键字

发布于 2024-10-25 09:42:58 字数 659 浏览 4 评论 0原文

我在查看 amazon.com 时注意到这样的产品:“真的真的真的长书名”,它们的 URL 如下:“amazon.com/<强>非常长的书名/ref?id=1&anotherId=2,"
对于像“Success”这样的简短标题,他们会添加其他单词,例如作者姓名:“amazon.com/Success-John-Smith/ref?id =1&另一个Id=2。”如果我删除这些单词,如下所示:“amazon.com/ref?id=1&anotherId=2”,URL 仍然可以解析。

多个 URL 解析到同一页面是否会损害 SEO?

这些词是如何添加到 URL 中的?是通过编程完成的,还是有人手工挑选单词并将其存储在每个产品的数据库中?

我一直在努力扩展我对 SEO 的了解,因此我真的很想了解如何尽可能彻底地完成此操作。我非常感谢任何资源的推荐,以及基于个人经验的建议,这样如果我实现这样的 URL,我就可以正确地做到这一点。我知道我可以用 Google 搜索这些东西,但似乎总有 1,000 种方法可以做某事,而我只是想听听一些个人建议。

就其价值而言,我使用 asp.net 4.0 (c#) 和 IIS7 URL 重写工具包。

多谢!

I was looking at amazon.com and noticed for a product like: "Really Really Really Long Book Title," they will have a URL like: "amazon.com/Really-Long-Book-Title/ref?id=1&anotherId=2,"
and for a short title like: "Success," they will add other words, like the author name: "amazon.com/Success-John-Smith/ref?id=1&anotherId=2." If I remove these words, like so: "amazon.com/ref?id=1&anotherId=2," the URL still resolves.

Does it hurt SEO to have multiple URLs that resolve to the same page?

How are these words even added to the URL? Is it done programmatically, or do they have someone hand-pick words and store them in a database for each product?

I've been trying to expand my knowledge about SEO so I'd really like to learn how this is being done as thoroughly as possible. I'd greatly appreciate the recommendation of any resources, and also advice based on person experience so that if I implement URLs like this, I can do it correctly. I know I can Google this stuff, but there always seems to be 1,000 ways to do something and I'd just to hear some personal recommendations.

For what it's worth, I use asp.net 4.0 (c#) and the IIS7 URL rewrite toolkit.

Thanks a lot!

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

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

发布评论

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

评论(2

各空 2024-11-01 09:42:59

IIS7 URL 重写工具包是适合您的情况的最佳工具。以下是我对您的问题的回答。

Does it hurt SEO to have multiple URLs that resolve to the same page?

只要您向搜索引擎显示哪个 URL 是主要 URL,则事实并非如此。您可以通过在主链接页面中添加 rel="canonical" 来实现此目的。最好的例子就是 StackOverflow,它在 SEO 方面做得非常好。现在,如果您使用http://stackoverflow.com/questions/5392137/,您将被指向此页面,如果您使用http://stackoverflow.com/questions/5392137/ url-rewrite-adding-keywords 您也会进入此页面。显然,第二个 ULR 有更多的关键字,这对 SEO 很有帮助,而且也更用户友好,因为用户知道 URL 的全部内容。

这些词是如何添加到
网址?是通过编程完成的,还是
他们有人精心挑选单词吗
并将它们存储在数据库中
产品?

如果您是开发人员,那么这不再是您的责任。 SEO 20% 是技术,80% 是营销(这是我的粗略计算,你知道这一点。:-))。这些营销人员应该在您授予他们编写或重写 ULR 的权限后处理这个问题。他们可能会根据自己的策略找到一些关键字并将其中一些添加到 URL 中。 Elad Lachmi 对于这个问题给出了很好的回答。 StackOverflow 使用问题标题作为 URL,这是合理的。雇用大量 SEO 人员根据不同的问题查找关键字,然后手动添加到 URL 对于 SO 来说并不是一个好的选择。但对于商业网站来说,雇人手动做是值得的。答案取决于您的网站类型。

希望这有帮助

IIS7 URL rewrite toolkit is a best tool to use in your case. Here are my answers to your questions.

Does it hurt SEO to have multiple URLs that resolve to the same page?

It does not, as long as you show search engines which URL is a primary one. You can do this by adding rel="canonical"in the primary link page. The best example of this is StackOverflow, which is doing very well in terms of SEO. Now, if you use http://stackoverflow.com/questions/5392137/ you will be pointed to this page, if you use http://stackoverflow.com/questions/5392137/url-rewrite-adding-keywords you will be on this page as well. Obviously the second ULR has more keywords, which is great for SEO, and it is more user friendly as well, since users know what the URL is all about.

How are these words even added to the
URL? Is it done programmatically, or
do they have someone hand-pick words
and store them in a database for each
product?

If you are a developer, then it is not your responsibility any more. SEO is 20% technical, 80% marketing(it is my rough calculation, you know the point.:-)). Those marketing folks should handle that after you give them an access to write or rewrite ULRs. They may find some keywords and add some of them in URL based on their tactics. Elad Lachmi gave a good answer on this question. StackOverflow is using question titles as a URL,which is reasonable. Hiring lots of SEOers to find keywords based on different questions and then manually add to URLs is not a good option for SO. But for commercial web sites, it is worthwhile to hire someone to manually do it. The answer is based on what kind of web site yours is.

Hope this helps

冬天旳寂寞 2024-11-01 09:42:59

我喜欢重写工具包,因为你可以做任何事情!
根据我的经验,让内容编辑者设置他们喜欢的任何 URL 是最好的选择。计算机不擅长语义。你可以创建设定的规则,它们可能没问题(告诉计算机“如果标题不够长,添加作者姓名”并不难),但由于无论如何都是人添加产品,所以需要一点搜索引擎优化内容编辑者的教程可以大有帮助。您会对了解其产品的人能够想出的东西感到惊讶。我见过我们的内容编辑者制作的很棒的标题和 URL,这是我作为开发人员一百万年后都想不到的。

I love the rewrite toolkit because you can do ANYTHING!
From my experience, letting the content editor set whatever URL they like is the best option. Computer are not big on semantics. You can create set rules, and they might be ok (It`s not that hard to tell a computer "if the title is not long enough, add the author name"), but since a human adds the products anyway, a little SEO tutorial for the content editors can go a long way. You would be surprised what people who know thier products can come up with. I have seen great titles and URLs done by our content editors, that I would never think of in a million years from my position as a developer.

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