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

With respect to SEO, is it preferred to use hyphen instead of period in the URL?

· 52CE 我爱测

I have a complex class on my server side, for example class Car has Properties Make and Model . There is a form that user can fill ( Make and Model are input textboxes), then I pass all these inputs as search parameters to the se…

问题原文

原帖链接 · Hooman Bahreini · CC BY-SA 4.0

I have a complex class on my server side, for example class Car has Properties Make and Model.

There is a form that user can fill (Make and Model are input textboxes), then I pass all these inputs as search parameters to the server. The search parameters are passed in QueryString.

I use jQuery to serialize my form, so I end up with a url like:

domain/search?text=some+search+term&car.make=Toyota&car.model=Corolla

Since Car is a complex type, it is NOT very easy for me to replace the period with hyphen... so I would only do this, if this is actually important with respect to SEO. Do search engines prefer a URL with hyphen (like below) to a URL with period?

domain/search?text=some+search+term&car-make=Toyota&car-model=Corolla

已采纳解答

原帖链接 · Georg Keferböck · CC BY-SA 4.0

Generally speaking, "hyphen" is prefered over "underscore" - I never had anyone use "periods" before, but for the sake of this question, I recommend hyphens over periods. It is more a readability thing. However, it will neither make or break your site. The only thing that matters when it comes to SEO is that you have a product/service that is needed by people, content that supports search queries of different intent (knowledge, commercial, transactional) and resonates with your audience.

Equally important - have an outreach campaign in place that works. Finally, a desktop and mobile-friendly website that passes the UI/UX needs of your visitors (see RAIL model). That's all based on eight years working in Digital Marketing and various successful projects. The website is your car, and Technical SEO, content and outreach is the driver. The vehicle must be optimised and ready - the driver will win the race.

Now to answer your particular question - you are referring to a Search query - so I am assuming this is a POST request (you are sending the "Search" Query entered by a user to the Server). So it doesn't matter at all to SEO because Google bot will not invoke a search on your website, most importantly it won't enter a random long-tail keyword and then check the POST URL and try to make sense of it (ironically of the search term it just entered).

Google bot will only ever crawl links in your sitemap and links found on your website .

Please let me know if I miss understood your question, and I am more than happy to give additional information.

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

资料来源与适用范围

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

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

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