问题原文
原帖链接 · timesharer · CC BY-SA 4.0
There is this terminology of "clean"/"short"/pretty" URLs.
What makes a URL this way?
- Is it the lack of a Cname value such as
www.? - Is it the lack of query string variables and their values?
- Is it the lack of both?
- Is it the lack of something totally different?
已采纳解答
原帖链接 · Jhun A. · CC BY-SA 4.0
The Cname www if it is set to be part of the base URL is OK. It depends if the website uses www or non www. But it should be consistent to avoid duplicate contents. So it would still be a clean URL with or without. Consistency is a must for SEO point of view.
Yes clean url should not contain query strings and extensions like .html, .php, etc. I remember configuring clean URL for one site before and my boss wants to remove the .html extensions.
Query strings are dynamic hence the content of page may change depending on the query. This is usual on ecommerce sites where searching of products is a vital function.
Also, it should not contain program extensions like .html , .asp , .php
Examples of clean url would be:
https://www.example.comhttps://www.example.com/carshttps://www.example.com/cars/sports-car
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
