SEO笔记:构建URL的15个SEO最佳实践
By: Rand Fishkin
原文链接:https://moz.com/blog/15-seo-best-practices-for-structuring-urls
#1: Whenever possible, use a single domain & subdomain
1.尽量使用简单的域名/二级域名
二级域名,子文件夹,301跳转的对比:Subdomains vs. Subfolders, Rel Canonical vs. 301, and How to Structure Links for SEO - Whiteboard Friday
#2: The more readable by human beings, the better
2.可读性越佳越好
比较:https://moz.com/blog/15-seo-best-practices-for-structuring-urls
https://moz.com/blog/110001.php
#3: Keywords in URLs: still a good thing
3.关键字体现在URL中
#4: Multiple URLs serving the same content? Canonicalize ‘em!
4.多个页面提供相同的内容?规范化他们!(有点难理解)
#5: Exclude dynamic parameters when possible
5.尽量排除动态参数(个人理解和第二点类似)
#6: Shorter > longer
6.短链接更可读。
#7: Match URLs to titles most of the time (when it makes sense)
7.URL和页面的title标签尽量保持一致。
#8: Including stop words isn‘t necessary
8.连接字符( stop words (and, or, but, of, the, a, etc.))不是必须的
#9: Remove/control for unwieldy punctuation characters
9.移除/控制难处理(不安全)的标点符号
Classification | Included characters | Encoding required? |
---|---|---|
Safe characters | Alphanumerics [0-9a-zA-Z] , special characters $-_.+!*‘() , and reserved characters used for their reserved purposes (e.g., question mark used to denote a query string) |
NO |
ASCII Control characters | Includes the ISO-8859-1 (ISO-Latin) character ranges 00-1F hex (0-31 decimal) and 7F (127 decimal.) | YES |
Non-ASCII characters | Includes the entire “top half” of the ISO-Latin set 80-FF hex (128-255 decimal.) | YES |
Reserved characters | $ & + , / : ; = ? @ (not including blank space) |
YES* |
Unsafe characters | Includes the blank/empty space and " < > # % { } | \ ^ ~ [ ] ` |
YES |
* Note: Reserved characters only need encoding when not used for their defined, reserved purposes.
表格数据来自于:https://perishablepress.com/stop-using-unsafe-characters-in-urls/
#10: Limit redirection hops to two or fewer
10.减少重定向跳转
如果客户端请求A,实际重定向B,或者再次重定向C,客户端可以得到C,但是搜索引擎不会记录C页面的排名
#11: Fewer folders is generally better
11.减少子文件
#12: Avoid hashes in URLs that create separate/unique content
12:尽量避免使用URL #创建单独的url /独特的内容
#常用于追踪参数 e.g. someone.com/first-page#src=weibo
也有例外,见原文链接
#13: Be wary of case sensitivity
13.注意大小写
URL是区分大小写的,尽量小写。
#14: Hyphens and underscores are preferred word separators
14.破折号和下划线是首选词分隔符
很久以前,搜索引擎只把破折号作为分隔符,现在已攻克,破折号和下划线都是首选分隔符
#15: Keyword stuffing and repetition are pointless and make your site look spammy
重复的关键字并不会提高Page Ranking.
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。