URL 结构首选项 - 斜线还是不斜线?

发布于 2024-08-31 05:13:47 字数 305 浏览 8 评论 0原文

我使用 WordPress 3.0 中的自定义帖子类型来管理“课程”(或研讨会、讲座,无论您想要什么术语)。

现在,要查看单个“课程”,URL 结构为:

/course/course-name/

但对于多门课程呢?

/courses/category/category-name/

或者……

/course-category/category-name/

或者完全不同的东西?

I'm using custom post types in WordPress 3.0 to manage 'courses' (or seminars, lectures, whatever term you'd prefer to have in mind).

Now for viewing a single 'course', the url structure is;

/course/course-name/

But for multiple courses?

/courses/category/category-name/

Or...

/course-category/category-name/

Or something entirely different?

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

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

发布评论

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

评论(2

苄①跕圉湢 2024-09-07 05:13:47

从 SEO 的角度来看正斜杠越少越好
您设置的每个级别(正斜杠)对于(某些)搜索引擎来说(通常)意味着不太重要。

我建议您使用 1 级 URL,例如

www.example.com/course-marketing-the-best-practices

或 2 级 URL。

搜索引擎对第二级以上的索引页面的权重较低。例如,URL (http://pohee.com/Level-1/ Level-2/Level-3),“Level-3”级别的页面受到搜索引擎爬虫的关注较少。 作者:Pohee

搜索引擎抓取工具希望在前两个或三个子文件夹中找到重要内容。 通过 GetInPosition

一些资源:

From an SEO prespective the least forward slashes the better.
Every level (forward slash) you put means (usually) less importance to (some) search engines.

I'd recommend you to use Level-1 URLs like

www.example.com/course-marketing-the-best-practices

Or Level-2 as much.

Search engines put less weight on indexing pages above 2nd levels. For example, the URL (http://pohee.com/Level-1/Level-2/Level-3), pages in "Level-3" level receives less focus by search engine crawler. by Pohee

Search engine crawlers expect the important content to be found within the first two or three subfolders. by GetInPosition

Some resources:

木槿暧夏七纪年 2024-09-07 05:13:47

为什么不只是 /courses/category-name/ ?

毕竟这是课程类别。

Why not just /courses/category-name/ ?

It is the course category after all.

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