优化robots.txt,利于 WordPress 网站排名

前端之家收集整理的这篇文章主要介绍了优化robots.txt,利于 WordPress 网站排名前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

想过要优化你的 robots.txt 文件吗?可能你还不清楚 robots.txt 文件wordpress建站中对SEO的重要性。这篇文章将教会你如何优化自己的 robots.txt 文件

robots1

Robots协议(也称为爬虫协议、机器人协议等)的全称是“网络爬虫排除标准”(Robots Exclusion Protocol),robots.txt 文件通常位于网站的根目录,在SEO中起着很重要的作用,此文件是网站与搜索引擎之间的桥梁,网站通过Robots协议告诉搜索引擎哪些页面可以抓取,哪些页面不能抓取。

网站中如果没有 robots.txt 文件搜索引擎也会爬行和索引网站里的页面,但是我们还是强烈建议您创建一个 robots.txt 文件。如果你想要提交网站的XML地图,你可以写在此文件中,当然你也可以到谷歌,百度,搜狗等站长工具里手动提交。

此处附上较优化的robots.txt 文件,供大家参考,可以根据实际需求进行更改。

Crayon-5c891d64bdd13604550194" class="Crayon-Syntax Crayon-theme-classic Crayon-font-monaco Crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouSEOver" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
Crayon-toolbar" data-settings=" mouSEOver overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">Crayon-title">robots.txt
Crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
Crayon-button Crayon-nums-button" title="Toggle Line Numbers">
Crayon-button-icon">
Crayon-button Crayon-plain-button" title="Toggle Plain Code">
Crayon-button-icon">
Crayon-button Crayon-wrap-button" title="Toggle Line Wrap">
Crayon-button-icon">
Crayon-button Crayon-expand-button" title="Expand Code">
Crayon-button-icon">
Crayon-button Crayon-copy-button" title="Copy">
Crayon-button-icon">
Crayon-button Crayon-popup-button" title="Open Code In New Window">
Crayon-button-icon">
Crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
Crayon-plain-wrap">
Crayon-main" style="">Crayon-table">Crayon-row">
Crayon-nums " data-settings="show">
Crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
Crayon-num" data-line="Crayon-5c891d64bdd13604550194-1">1
Crayon-num Crayon-striped-num" data-line="Crayon-5c891d64bdd13604550194-2">2
Crayon-num" data-line="Crayon-5c891d64bdd13604550194-3">3
Crayon-num Crayon-striped-num" data-line="Crayon-5c891d64bdd13604550194-4">4
Crayon-num" data-line="Crayon-5c891d64bdd13604550194-5">5
Crayon-num Crayon-striped-num" data-line="Crayon-5c891d64bdd13604550194-6">6
Crayon-num" data-line="Crayon-5c891d64bdd13604550194-7">7
Crayon-num Crayon-striped-num" data-line="Crayon-5c891d64bdd13604550194-8">8
Crayon-num" data-line="Crayon-5c891d64bdd13604550194-9">9
Crayon-num Crayon-striped-num" data-line="Crayon-5c891d64bdd13604550194-10">10
Crayon-num" data-line="Crayon-5c891d64bdd13604550194-11">11
Crayon-code">
Crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
Crayon-line" id="Crayon-5c891d64bdd13604550194-1">Crayon-v">UserCrayon-o">-Crayon-v">agentCrayon-o">:Crayon-h"> Crayon-o">*
Crayon-line Crayon-striped-line" id="Crayon-5c891d64bdd13604550194-2">Crayon-v">DisallowCrayon-o">:Crayon-h"> Crayon-o">/Crayon-v">wpCrayon-o">-
Crayon-line" id="Crayon-5c891d64bdd13604550194-3">Crayon-v">DisallowCrayon-o">:Crayon-h"> Crayon-o">/Crayon-v">FeedCrayon-o">/
Crayon-line Crayon-striped-line" id="Crayon-5c891d64bdd13604550194-4">Crayon-v">DisallowCrayon-o">:Crayon-h"> Crayon-o">/Crayon-v">commentsCrayon-o">/Crayon-e">Feed
Crayon-line" id="Crayon-5c891d64bdd13604550194-5">Crayon-v">DisallowCrayon-o">:Crayon-h"> Crayon-o">/Crayon-v">trackbackCrayon-o">/
Crayon-line Crayon-striped-line" id="Crayon-5c891d64bdd13604550194-6">Crayon-v">DisallowCrayon-o">:Crayon-h"> Crayon-c">/*/trackback
Crayon-line" id="Crayon-5c891d64bdd13604550194-7">Crayon-c">Disallow: /Feed
Crayon-line Crayon-striped-line" id="Crayon-5c891d64bdd13604550194-8">Crayon-c">Disallow: /*/Crayon-e">Feed
Crayon-line" id="Crayon-5c891d64bdd13604550194-9">Crayon-v">DisallowCrayon-o">:Crayon-h"> Crayon-o">/Crayon-sy">?Crayon-v">sCrayon-o">=Crayon-o">*
Crayon-line Crayon-striped-line" id="Crayon-5c891d64bdd13604550194-10">
Crayon-line" id="Crayon-5c891d64bdd13604550194-11">Crayon-v">SitemapCrayon-o">:Crayon-h"> Crayon-v">httpCrayon-o">:Crayon-c">//www.yourdomain.com/sitemap.xml

猜你在找的wordpress相关文章