URL 结构首选项 - 斜线还是不斜线?
我使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
从 SEO 的角度来看正斜杠越少越好。
您设置的每个级别(正斜杠)对于(某些)搜索引擎来说(通常)意味着不太重要。
我建议您使用 1 级 URL,例如
www.example.com/course-marketing-the-best-practices
或 2 级 URL。
一些资源:
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.
Some resources:
为什么不只是 /courses/category-name/ ?
毕竟这是课程类别。
Why not just /courses/category-name/ ?
It is the course category after all.