Home  >  Article  >  Backend Development  >  javascript - Which web page URL path do you like?

javascript - Which web page URL path do you like?

WBOY
WBOYOriginal
2016-12-01 00:25:23956browse

  1. http://www.163.com/user/accountOverview

  2. http://www.163.com/user/account_overview

  3. http://www.163.com/user/account/overview

  4. http://www.163.com/user/account-overview
    According to the suggestions of netizens in the group, which path does everyone prefer to use?

Reply content:

  1. http://www.163.com/user/accountOverview

  2. http://www.163.com/user/account_overview

  3. http://www.163.com/user/account/overview

  4. http://www.163.com/user/account-overview
    According to the suggestions of netizens in the group, which path does everyone prefer to use?

According to restful, the first choice is 3.
Secondly, use the middle horizontal line 4. Because Google has better support for the middle horizontal line

The result is the same, it doesn’t matter which way

/

Personal habits

I don’t know if you see it as a thumbnail. For everyone’s convenience, I cut it out...javascript - Which web page URL path do you like?

The third one

-

It’s all based on the programmer’s personal preferences, there is no absolute

The third one is layered

I don’t have a particular favorite address format, it depends on what the search engines like.

According to the RESTful specification, this is a resource and 3 meets the requirements.

Furthermore, URLs do not actually recommend underscores or case sensitivity, so 1 and 2 are not recommended.

The third or fourth

The third one is the best, I don’t like the others

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn