大网数据广告活动
网站运营与故障问答

SEO friendly URL for items which belongs to multiple categories

· 52CE 我爱测

I have a website with trainings, which belong to certain categories. So naturally I'd like to organize my website URLs in this way: example.com/trainings/{category name}/{training name} for example example.com/trainings/social/ho…

问题原文

原帖链接 · user3193620 · CC BY-SA 4.0

I have a website with trainings, which belong to certain categories. So naturally I'd like to organize my website URLs in this way:

example.com/trainings/{category name}/{training name}

for example

example.com/trainings/social/how-to-talk-with-employee
example.com/trainings/social/how-to-talk-with-children
example.com/trainings/law/ethics-in-business

and so on.

The problem is, that some trainings belong to several categories. For example

how-to-talk-with-lawyers, could belong to both law and social categories.

Should I generate a copy of the same content under different URLs? Like:

example.com/trainings/social/how-to-talk-with-lawyers
example.com/trainings/law/how-to-talk-with-lawyers

It sounds terrible to copy the same content. How can I organize it better?

已采纳解答

原帖链接 · tillinberlin · CC BY-SA 4.0

I would strongly advise you not to duplicate your content since a) this can be considered bad UX and b) would most likely be punished by search engines. (Just try a search on "duplicate content" and "SEO" and you will see, what I mean.)

Alternatively, i see three options:

  • You decide on a main category for each piece of content and have each article reside in that directory. This way you will have the SEO-friendly URL structure you were pointing out.
  • You could then add 'ghost entries' in the other categories that will do nothing but link to the main article in its main category. This could potentially be a bit 'dangerous' because pages with very little content might also be punished by search engines, so you should probably block those from being indexed. Also, you should then probably forward the user to the main page directly so that the poor page won't even be visible to the user.
  • Or you throw all your content into one directory ("trainings") and use the category pages mostly as content listings. I usually go with this approach, whenever I have to organize content in more than one category. In the long run, I would consider this the best approach.

Also: Have you done some research on your competitors or similar websites, and how they organize their content? This might also point you in the right direction.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2023-01-25)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。