百度site网站index.html排首位的解决方案

百度site网站index.html排首位的解决方案    

日常我们可能会经常遇到!有些网站具有生成html静态页面的功能,那么就会出现这种情况,访问:

    https://www.***.com/(首页)
    https://www.***.com/index.html(首页)
    但是,使用site命令查看网站收录的时候,发现排在首位的是https://www.***.com/index.html,而https://www.***.com/却排在很后,这是因为没有做好301重定向导致的,影响网站权重,解决方案如下5点:
    1.内部链接全部指向正确URLhttps://www.***.com/
    2.外部链接全部指向正确URLhttps://www.***.com/
    3.使用了canonical标签<linkrel="canonical"href="https://www.***.com/"/>
    4.把index.html301重定向到https://www.***.com/
    5.另外要注意的是,开启了SSL的,要把http重定向到https

Copyright & Disclaimer: If you find copyright issues, please provide relevant information and email us at [email protected], we will communicate promptly and handle removal.

Except for specially marked original content on abcdlink (https://www.abcdlink.com) all other content is reposted by users, and opinions/copyright are unrelated to this site.