《什么是PC和移动端URL路径规范化》对URL有详细说明,一般来说URL后面有斜杠,被认为是目录,不带斜杠被认为是一个文件。因此百度蜘蛛会认为这是两个不同网页,会页面分散权重。
文章源自张俊SEM-https://zhangjunsem.com/27830.html
网页URL主要有三种格式:文章源自张俊SEM-https://zhangjunsem.com/27830.html
①带斜杠的URL(目录URL)文章源自张俊SEM-https://zhangjunsem.com/27830.html
http://zhangjunsem.com/seo/
②没有后缀的URL(根目录下的文件)文章源自张俊SEM-https://zhangjunsem.com/27830.html
http://zhangjunsem.com/seo
③有后缀的URL(静态/伪静态URL)文章源自张俊SEM-https://zhangjunsem.com/27830.html
http://zhangjunsem.com/seo/1.html
④带参数的URL(动态URL)文章源自张俊SEM-https://zhangjunsem.com/27830.html
http://zhangjunsem.com/plus/view.php?aid=1
规范化的URL应该是统一的
①首页:不用“/”文章源自张俊SEM-https://zhangjunsem.com/27830.html
http://zhangjunsem.com
②栏目、列表、子栏目:带“/”文章源自张俊SEM-https://zhangjunsem.com/27830.html
http://zhangjunsem.com/seo/
③内容页、终端页:以html结尾文章源自张俊SEM-https://zhangjunsem.com/27830.html
http://zhangjunsem.com/seo/1.html
站内的URL建议都带“/”
①告诉搜索引擎读取该目录下的index.html文件或其他默认文件;文章源自张俊SEM-https://zhangjunsem.com/27830.html
②如果没有这个文件返回404错误;
③目录的权重大于内容页或终端页。
没有“/”的URL,浏览器会首先尝试读取该目录下的一个文件,如果没有该文件再查找一个与该文件同名的目录,最后才读取目录下的默认文件,一次会让服务器增加一个查找的过程。
站外URL影响不大
发外链或者友情链接的URL并没有太大的影响。
对SEO的影响
特别是首页的路径,以下URL都可以访问到首页的页面
http://zhangjunsem.com http://zhangjunsem.com/ http://zhangjunsem.com/index.php http://zhangjunsem.com/index.html http://zhangjunsem.com http://zhangjunsem.com/ http://zhangjunsem.com/index.php http://zhangjunsem.com/index.html
解决办法就是设置好301,参考文章《什么是301重定向怎么设置方法》。一般带www的域名认知度更广,在增加了二级域名的时候,写一些服务器脚本.htaccess的时候也容易些。
声明:转载此文是出于传递更多学习交流目的。若有来源标注错误或侵犯了您的合法权益,请作者持权属证明与本网联系,我们将及时更正、删除,谢谢。本站部分图文来源于网络,仅供学习交流,发表作品观点仅代表作者本人,本站仅提供信息存储空间服务,不承担连带责任。如有侵权,请及时联系管理员删除。










评论