按条件搜索 VS SEO
我需要为我的网站实现“按条件搜索”(我不知道英文中是否有更准确的词)。
我的产品具有颜色、价格、类型等属性......并且我需要允许用户选择这些标准来浏览它们。
但对于每个生成的结果,我需要:
- 一个唯一的 URL
- 可供网络爬虫直接访问的选择
我需要强大的 SEO。
因此,就目前而言,为了遵循这些规则,我最好的选择似乎是为每个标准提出一个链接。
这是一个基本示例:
<a href="http://www.mywebsite.com/search.php?color=red">color : red</a>
在我看来,这个解决方案相当不错,但是:
必须重新加载页面
我不能混合标准:例如颜色+价格。这是颜色或 价格。它是红色或蓝色。
所以我的问题是:有最好的方法吗?保留 SEO 方面但提供更用户友好的体验?
我想在 Ajax 请求中使用复选框(我已经准备好组件),但网络爬虫不会使用它,不是吗?
预先感谢您帮助我解决这个问题:)
I need to implement a "search by criteria" (I don't know if there is a more accurate word in english) for my website.
I have products that have attributes such as color, price, type, etc... and I need to allow the user to browse them selecting those criteria.
But for each produced result, I need :
- a unique URL
- the selection to be directly accessible to web crawlers
I need a strong SEO.
So for now, to follow these rules, it seems that my best option is to propose a link for each criteria.
This is a basic example :
<a href="http://www.mywebsite.com/search.php?color=red">color : red</a>
This solution is pretty good in my opinion but :
page must be reloaded
I can't mix criteria : color + price for instance. It's color OR
price. It's red OR blue.
So my question is : is there a best way to do it ? Keep the SEO aspect but offer a more user-friendly experience ?
I would like to use checkboxes with Ajax requests (I already have the component ready) but web crawlers won't play with it, won't they ?
Thanks in advance for helping me with this :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个解决方案的想法,因此您可以同时拥有可导航链接(对于机器人)和ajax链接(对于用户),
我最喜欢当网址变成 www.mywebsite.com/red/ 并且您可以通过添加继续编写网址“标准”(或参数)
This is an idea for a solution, so you can have both a navigable link (for bots) and an ajax link (for users)
I like best when urls become www.mywebsite.com/red/ and you keep on composing urls by adding "criterias" (or parameters)