Home >Backend Development >PHP Tutorial >javascript - Which web page URL path do you like?
http://www.163.com/user/accountOverview
http://www.163.com/user/account_overview
http://www.163.com/user/account/overview
http://www.163.com/user/account-overview
According to the suggestions of netizens in the group, which path does everyone prefer to use?
http://www.163.com/user/accountOverview
http://www.163.com/user/account_overview
http://www.163.com/user/account/overview
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...
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