{"id":8838,"date":"2017-08-30T15:25:57","date_gmt":"2017-08-30T12:25:57","guid":{"rendered":"https:\/\/themeisle.com\/blog\/?p=8838"},"modified":"2017-08-30T11:38:00","modified_gmt":"2017-08-30T11:38:00","slug":"optimize-wordpress-robots-txt-file","status":"publish","type":"post","link":"https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/","title":{"rendered":"How to Optimize WordPress Robots.txt File for Better SEO"},"content":{"rendered":"<div class=\"su-row\">\n<div class=\"su-column su-column-size-1-2\"><div class=\"su-column-inner su-u-clearfix su-u-trim\">\n<p>In this quick guide, I&#8217;ll explain what a robots.txt file is, why it&#8217;s important to <a href=\"https:\/\/themeisle.com\/blog\/free-seo-tools-for-wordpress\/\">improve your search rankings<\/a>, and how to make edits to it and submit it to Google.<\/p>\n<p>Let&#8217;s dive in!<\/p>\n<\/div><\/div>\n<div class=\"su-column su-column-size-1-2\"><div class=\"su-column-inner su-u-clearfix su-u-trim\">\n\n\t\t<div class='ti-tweet-clear'><\/div>\n\t\t\t<div class='ti-tweet_wrapper'>\n\t\t    \t<div class='ti-tweet_text'>\n\t\t    \t\t<a href='https:\/\/twitter.com\/share?text=How+to+optimize+your+%23WordPress+robots.txt+file+for+better+%23SEO&via=themeisle&related=themeisle&url=https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/' target='_blank' rel='nofollow'>How to optimize your #WordPress robots.txt file for better #SEO<\/a>\n\t\t    \t<\/div>\n\t\t    \t<div class='ti-tweet_sharebtn'>\n\t\t    \t<a href='https:\/\/twitter.com\/share?text=How+to+optimize+your+%23WordPress+robots.txt+file+for+better+%23SEO&via=themeisle&related=themeisle&url=https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/' target='_blank' rel='nofollow'>Click To Tweet \n\t\t    \t\t<span><\/span>\n\t\t    \t<\/a>\n\t\t    <\/div>\n\t\t<\/div>\n<\/div><\/div>\n<\/div>\n<h2>What is a WordPress robots.txt file and do I need to worry about it?<\/h2>\n<p>A <a href=\"https:\/\/themeisle.com\/blog\/robots-txt\/\">robots.txt<\/a> file is a file on your site that allows you to deny search engines access to certain files and folders. You can use it to block Google&#8217;s (and other search engines) bots from crawling certain pages on your site. Here&#8217;s an example of the file:<\/p>\n<p><img data-opt-id=1825480058  fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-8926 size-full\" style=\"-webkit-box-shadow: 0px 0px 8px 2px rgba(0,0,0,0.5); -moz-box-shadow: 0px 0px 8px 2px rgba(0,0,0,0.5); box-shadow: 0px 0px 8px 2px rgba(0,0,0,0.5);\" src=\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2019\/11\/robots-.-text-optimized-for-SEO.png\" alt=\"optimize WordPress robots.txt file: example of the file\" width=\"776\" height=\"267\" \/><\/p>\n<p>So how does denying access to search engines actually improve your SEO? Seems counterintuitive&#8230;<\/p>\n<p>It works like this: The more pages on your site, the more pages Google has to crawl.<\/p>\n<p>For example, if you have a lot of category and tag pages on your blog, these pages are low-quality and don&#8217;t need to be crawled by search engines; they just consume your site&#8217;s <a href=\"https:\/\/yoast.com\/crawl-budget-optimization\/\" target=\"_blank\" rel=\"noopener\">crawl budget<\/a> (the allotted\u00a0number of pages Google will crawl on your site at any given time).<\/p>\n<p>Crawl budget is important because it determines how quickly Google picks up on your site&#8217;s changes &#8211; and thus how quickly you&#8217;re ranked. It can especially help with eCommerce SEO!<\/p>\n<p>Just be careful to do this right, as it can harm your SEO if done poorly. For more info on how to properly no-index the right pages, check out <a href=\"https:\/\/www.deepcrawl.com\/blog\/best-practice\/noindex-and-google\/\" target=\"_blank\" rel=\"noopener\">this guide by DeepCrawl<\/a>.<\/p>\n<p>So, do you need to mess with your WordPress robots.txt file?<\/p>\n<p>If you&#8217;re in a highly competitive niche with a large site, probably. If you&#8217;re <a href=\"https:\/\/www.bloggingpro.com\/how-to-start-a-blog\/\" target=\"_blank\" rel=\"noopener\">just starting your first blog<\/a>, however, <a href=\"https:\/\/blog.rankwatch.com\/a-step-by-step-guide-to-influencer-outreach-for-link-building-and-promotion\/\" target=\"_blank\" rel=\"noopener\">building links to your content<\/a> and <a href=\"https:\/\/themeisle.com\/blog\/blog-post-ideas\/\">creating lots of high-quality articles<\/a>\u00a0are bigger priorities.<\/p>\n<h2>How to optimize WordPress robots.txt file for better SEO<\/h2>\n<p>Now, let&#8217;s discuss how to actually get to (or create) and optimize WordPress robots.txt file.<\/p>\n<p>Robots.txt usually resides in your site&#8217;s root folder. You will need to connect to your site using an\u00a0<a href=\"https:\/\/filezilla-project.org\/\" target=\"_blank\" rel=\"noopener\">FTP client<\/a>\u00a0or by using your cPanel&#8217;s file manager to view it. It&#8217;s just an ordinary text file that you can then open with Notepad.<\/p>\n<p>If you don&#8217;t have a robots.txt file in your site&#8217;s root directory, then you can create one. All you need to do is create a new text file on your computer and save it as robots.txt. Then, just upload it to your site&#8217;s root folder.<\/p>\n<h3>What does an ideal robots.txt file look like?<\/h3>\n<p>The format for a robots.txt file is really simple. The first line usually names a user agent. The user agent is the name of the search bot you&#8217;re trying to communicate with. For example, <code>Googlebot<\/code> or <code>Bingbot<\/code>. You can use asterisk <code>*<\/code> to instruct all bots.<\/p>\n<p>The next line follows with <em>Allow<\/em> or <em>Disallow<\/em> instructions for search engines, so they know which parts you want them to index, and which ones you don&#8217;t want to be indexed.<\/p>\n<p>Here&#8217;s an example:<\/p>\n<pre><code>User-Agent: *\nAllow: \/?display=wide\nAllow: \/wp-content\/uploads\/\nDisallow: \/readme.html\nDisallow: \/refer\/\n\nSitemap: http:\/\/www.codeinwp.com\/post-sitemap.xml\nSitemap: http:\/\/www.codeinwp.com\/page-sitemap.xml\nSitemap: http:\/\/www.codeinwp.com\/deals-sitemap.xml\nSitemap: http:\/\/www.codeinwp.com\/hosting-sitemap.xml<\/code><\/pre>\n<p>Note that if you&#8217;re using a plugin like Yoast or All in One SEO, you may not need to add the sitemap section, as they try to do so automatically. If it fails, you can add it manually like in the example above.<\/p>\n<h3>What should I disallow or noindex?<\/h3>\n<p><strong>In Google&#8217;s webmaster guidelines, they advise webmasters not to use their\u00a0robots.txt file to hide low-quality content.<\/strong> Thus, using your robots.txt file to stop Google from indexing your category, date, and other archive pages may not be a wise choice.<\/p>\n<p>Remember, the purpose of robots.txt is to instruct bots what to do with the content they crawl on your site. It doesn&#8217;t stop them from crawling your website.<\/p>\n<p>Also, you don&#8217;t need to add your WordPress login page, admin directory, or registration page to robots.txt because login and registration pages have the\u00a0<a href=\"https:\/\/themeisle.com\/blog\/no-index-wordpress\/\">noindex tag<\/a> added automatically by WordPress.<\/p>\n<p>I do recommend, however, that you <strong>disallow the readme.html file in your robots.txt file.<\/strong> This readme file can be used by someone trying to figure out which version of WordPress you&#8217;re using. If this is a person, they can easily access the file by just browsing to it. Plus, putting a disallow tag in can block malicious attacks.<\/p>\n<h3>How do I submit my WordPress robots.txt file to Google?<\/h3>\n<p>Once you&#8217;ve updated or created your robots.txt file, you can submit it to Google using Google Search Console.<\/p>\n<p>However, I recommend testing it first using <a href=\"https:\/\/www.google.com\/webmasters\/tools\/robots-testing-tool\" target=\"_blank\" rel=\"noopener\">Google&#8217;s robots.txt testing tool<\/a>.<\/p>\n<p><img data-opt-id=1647185886  fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-8927 size-large\" style=\"-webkit-box-shadow: 0px 0px 8px 2px rgba(0,0,0,0.5); -moz-box-shadow: 0px 0px 8px 2px rgba(0,0,0,0.5); box-shadow: 0px 0px 8px 2px rgba(0,0,0,0.5);\" src=\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2019\/11\/robots.txt-test.png\" alt=\"Robots.txt tester example \" width=\"1024\" height=\"452\" \/><\/p>\n<p>If you don&#8217;t see the version you created here, you&#8217;ll have to re-upload the robots.txt file you created to your WordPress site. You can <a href=\"https:\/\/kb.yoast.com\/kb\/how-to-edit-robots-txt-through-yoast-seo\/\" target=\"_blank\" rel=\"noopener\">do this using Yoast SEO<\/a>.<\/p>\n<h2>Conclusion<\/h2>\n<p>You now know how to optimize WordPress robots.txt file for <a href=\"https:\/\/themeisle.com\/blog\/off-page-seo-checklist-wordpress\/\">better SEO<\/a>.<\/p>\n<p>Remember to be careful when making any major changes to your site via robots.txt. While these changes can improve your search traffic, they can also do more harm than good if you&#8217;re not careful.<\/p>\n<p>And if you&#8217;re dying for more learning, check out our <a href=\"https:\/\/wpshout.com\/brilliant-wordpress-tutorials\/\" target=\"_blank\" rel=\"noopener\">ultimate roundup of WordPress tutorials<\/a>!<\/p>\n<div class=\"su-row\">\n<div class=\"su-column su-column-size-1-2\"><div class=\"su-column-inner su-u-clearfix su-u-trim\">\n<p><strong><em>Let us know in the comments; do you have any questions on how to optimize WordPress robots.txt file? What kind of impact did taking care of it have on your search rankings?<\/em><\/strong><\/p>\n<\/div><\/div>\n<div class=\"su-column su-column-size-1-2\"><div class=\"su-column-inner su-u-clearfix su-u-trim\">\n\n\t\t<div class='ti-tweet-clear'><\/div>\n\t\t\t<div class='ti-tweet_wrapper'>\n\t\t    \t<div class='ti-tweet_text'>\n\t\t    \t\t<a href='https:\/\/twitter.com\/share?text=How+to+optimize+your+%23WordPress+robots.txt+file+for+better+%23SEO&via=themeisle&related=themeisle&url=https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/' target='_blank' rel='nofollow'>How to optimize your #WordPress robots.txt file for better #SEO<\/a>\n\t\t    \t<\/div>\n\t\t    \t<div class='ti-tweet_sharebtn'>\n\t\t    \t<a href='https:\/\/twitter.com\/share?text=How+to+optimize+your+%23WordPress+robots.txt+file+for+better+%23SEO&via=themeisle&related=themeisle&url=https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/' target='_blank' rel='nofollow'>Click To Tweet \n\t\t    \t\t<span><\/span>\n\t\t    \t<\/a>\n\t\t    <\/div>\n\t\t<\/div>\n<\/div><\/div>\n<\/div>\n<style>.ticss-d144f107 strong{font-weight: 700;\n    letter-spacing: -0.2px;\n    line-height: 1.2;\n    display: inline-block;}<\/style>\n\n\n<div class=\"wp-block-columns speed-guide has-white-color has-text-color has-background has-link-color wp-elements-2f81f6c5526477b5b4d52d1ca4513949 is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\" style=\"background-color:#4267cf\">\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:40%\">\n<figure class=\"wp-block-image size-medium\"><img data-opt-id=30701221  fetchpriority=\"high\" decoding=\"async\" width=\"300\" height=\"300\" src=\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:300\/h:300\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png\" alt=\"speed guide\" class=\"wp-image-113040\" srcset=\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:300\/h:300\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 300w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:1024\/h:1024\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 1024w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:150\/h:150\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 150w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:768\/h:768\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 768w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:50\/h:50\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 50w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:240\/h:240\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 240w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:397\/h:397\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 397w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:600\/h:600\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 600w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:148\/h:148\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 148w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:195\/h:195\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 195w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:135\/h:135\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 135w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:1080\/h:1080\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 1200w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:1080\/h:1080\/q:mauto\/f:best\/dpr:2\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 2x\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"has-text-align-center ticss-58e79f2f\" style=\"font-size:14px\"><strong>FREE GUIDE<\/strong><\/p>\n\n\n\n<p class=\"ticss-d144f107\" style=\"font-size:25px\"><strong>4 Essential Steps to Speed Up Your&nbsp;WordPress Website<\/strong><\/p>\n\n\n\n<p class=\"ticss-3b627beb\">Follow the simple steps in our 4-part mini series and reduce your loading times by 50-80%.&nbsp;\ud83d\ude80<\/p>\n\n\n<p><div class=\"frm_forms  with_frm_style frm_style_themeisle\" id=\"frm_form_4_container\" data-token=\"6270ac099d6f40a50b65c310764fee58\">\n<form enctype=\"multipart\/form-data\" method=\"post\" class=\"frm-show-form  frm_pro_form \" id=\"form_site-speed-guide-below-post\" data-token=\"6270ac099d6f40a50b65c310764fee58\">\n<div class=\"frm_form_fields \">\n<fieldset>\n<legend class=\"frm_screen_reader\">Site Speed Guide - Below Post<\/legend>\r\n\r\n<div class=\"frm_fields_container\">\n<input type=\"hidden\" name=\"frm_action\" value=\"create\" \/>\n<input type=\"hidden\" name=\"form_id\" value=\"4\" \/>\n<input type=\"hidden\" name=\"frm_hide_fields_4\" id=\"frm_hide_fields_4\" value=\"\" \/>\n<input type=\"hidden\" name=\"form_key\" value=\"site-speed-guide-below-post\" \/>\n<input type=\"hidden\" name=\"item_meta[0]\" value=\"\" \/>\n<input type=\"hidden\" id=\"frm_submit_entry_4\" name=\"frm_submit_entry_4\" value=\"7c2d491008\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/blog\/wp-json\/wp\/v2\/posts\/8838\" \/><input type=\"hidden\" name=\"item_meta[18]\" id=\"field_6px6q2\" value=\"\/blog\/wp-json\/wp\/v2\/posts\/8838\"  data-frmval=\"\/blog\/wp-json\/wp\/v2\/posts\/8838\"   \/>\n<div id=\"frm_field_15_container\" class=\"frm_form_field form-field  frm_required_field frm_none_container\">\r\n\t<label for=\"field_6px6q\" id=\"field_6px6q_label\" class=\"frm_primary_label\">Your Email\r\n\t\t<span class=\"frm_required\" aria-hidden=\"true\">*<\/span>\r\n\t<\/label>\r\n\t<input type=\"email\" id=\"field_6px6q\" name=\"item_meta[15]\" value=\"\"  autocomplete=\"email\"  placeholder=\"your@email.com\" data-reqmsg=\"Your Email cannot be blank.\" aria-required=\"true\" data-invmsg=\"Your Email is invalid\" aria-invalid=\"false\"  \/>\r\n\t\r\n\t\r\n<\/div>\n<div id=\"frm_field_17_container\" class=\"frm_form_field form-field  frm_none_container vertical_radio\">\r\n\t<div  id=\"field_6px6q3_label\" class=\"frm_primary_label\">Subscribe to our newsletter\r\n\t\t<span class=\"frm_required\" aria-hidden=\"true\"><\/span>\r\n\t<\/div>\r\n\t<div class=\"frm_opt_container\" aria-labelledby=\"field_6px6q3_label\" role=\"group\">\t\t<div class=\"frm_checkbox\" id=\"frm_checkbox_17-0\">\t\t\t<label  for=\"field_6px6q3-0\">\n\t\t\t<input type=\"checkbox\" name=\"item_meta[17][]\" id=\"field_6px6q3-0\" value=\"true\"  data-invmsg=\"Subscribe to our newsletter is invalid\" aria-invalid=\"false\"   \/> Subscribe to our newsletter<\/label><\/div>\n<\/div>\r\n\t\r\n\t\r\n<\/div>\n<div id=\"frm_field_14_container\" class=\"frm_form_field form-field \">\r\n\t<div class=\"frm_submit frm_flex\">\r\n<button class=\"frm_button_submit frm_final_submit\" type=\"submit\"   formnovalidate=\"formnovalidate\">FREE ACCESS<\/button>\r\n\r\n\r\n\r\n<\/div>\r\n<\/div>\n\t<input type=\"hidden\" name=\"item_key\" value=\"\" \/>\n\t\t\t<div id=\"frm_field_24_container\">\n\t\t\t<label for=\"field_hiaxf\" >\n\t\t\t\tIf you are human, leave this field blank.\t\t\t<\/label>\n\t\t\t<input  id=\"field_hiaxf\" type=\"text\" class=\"frm_form_field form-field frm_verify\" name=\"item_meta[24]\" value=\"\"  \/>\n\t\t<\/div>\n\t\t<input name=\"frm_state\" type=\"hidden\" value=\"tGKtIG19U6wyYcew8uBttWW3m3xDJALwi7r7oin5OouPSAm6AeCFrcPBJiK38Y1i\" \/><\/div>\n<\/fieldset>\n<\/div>\n\n<p style=\"display: none !important;\" class=\"akismet-fields-container\" data-prefix=\"ak_\"><label>&#916;<textarea name=\"ak_hp_textarea\" cols=\"45\" rows=\"8\" maxlength=\"100\"><\/textarea><\/label><input type=\"hidden\" id=\"ak_js_1\" name=\"ak_js\" value=\"84\"\/><script>document.getElementById( \"ak_js_1\" ).setAttribute( \"value\", ( new Date() ).getTime() );<\/script><\/p><\/form>\n<\/div>\n<\/p>\n<\/div>\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"What is a WordPress robots.txt file and do I need to worry about it? A robots.txt file is a file on your site that allows you to deny search engines access to certain files and folders. You can use it to block Google&#8217;s (and other search engines) bots from crawling certain pages on your site&#8230;.","protected":false},"author":20,"featured_media":8937,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_stopmodifiedupdate":false,"_modified_date":"","_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[283,272],"tags":[],"hashtags":[],"class_list":["post-8838","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-marketing-seo","category-wordpress-tutorials"],"wppr_data":{"cwp_meta_box_check":"No"},"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.8 (Yoast SEO v26.1.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Optimize WordPress Robots.txt File for Better SEO<\/title>\n<meta name=\"description\" content=\"Want to optimize WordPress robots.txt file? This step-by-step guide will teach you exactly how to do that.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Optimize WordPress Robots.txt File for Better SEO\" \/>\n<meta property=\"og:description\" content=\"Want to optimize WordPress robots.txt file? This step-by-step guide will teach you exactly how to do that.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/\" \/>\n<meta property=\"og:site_name\" content=\"Themeisle Blog\" \/>\n<meta property=\"article:published_time\" content=\"2017-08-30T12:25:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/08\/optimize-wordpress-robots-txt-file.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1090\" \/>\n\t<meta property=\"og:image:height\" content=\"545\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Bill Widmer\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Bill Widmer\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/\"},\"author\":{\"name\":\"Bill Widmer\",\"@id\":\"https:\/\/themeisle.com\/blog\/#\/schema\/person\/9894ce8d6f41812816dd1796876e99ae\"},\"headline\":\"How to Optimize WordPress Robots.txt File for Better SEO\",\"datePublished\":\"2017-08-30T12:25:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/\"},\"wordCount\":969,\"commentCount\":8,\"publisher\":{\"@id\":\"https:\/\/themeisle.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/08\/optimize-wordpress-robots-txt-file.jpg\",\"articleSection\":[\"Marketing &amp; SEO\",\"WordPress Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/\",\"url\":\"https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/\",\"name\":\"How to Optimize WordPress Robots.txt File for Better SEO\",\"isPartOf\":{\"@id\":\"https:\/\/themeisle.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/08\/optimize-wordpress-robots-txt-file.jpg\",\"datePublished\":\"2017-08-30T12:25:57+00:00\",\"description\":\"Want to optimize WordPress robots.txt file? This step-by-step guide will teach you exactly how to do that.\",\"breadcrumb\":{\"@id\":\"https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/#primaryimage\",\"url\":\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/08\/optimize-wordpress-robots-txt-file.jpg\",\"contentUrl\":\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/08\/optimize-wordpress-robots-txt-file.jpg\",\"width\":1090,\"height\":545,\"caption\":\"how to optimize WordPress robots.txt file\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\/\/themeisle.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Optimize WordPress Robots.txt File for Better SEO\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/themeisle.com\/blog\/#website\",\"url\":\"https:\/\/themeisle.com\/blog\/\",\"name\":\"Themeisle Blog\",\"description\":\"WordPress Tutorials and Reviews for Beginners and Advanced\",\"publisher\":{\"@id\":\"https:\/\/themeisle.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/themeisle.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/themeisle.com\/blog\/#organization\",\"name\":\"VertiStudio\",\"alternateName\":\"Vertigo Studio SA\",\"url\":\"https:\/\/themeisle.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/themeisle.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2024\/02\/VertiStudio_logo1.png\",\"contentUrl\":\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2024\/02\/VertiStudio_logo1.png\",\"width\":718,\"height\":156,\"caption\":\"VertiStudio\"},\"image\":{\"@id\":\"https:\/\/themeisle.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/themeisle.com\/blog\/#\/schema\/person\/9894ce8d6f41812816dd1796876e99ae\",\"name\":\"Bill Widmer\",\"description\":\"Bill is a seasoned technology writer and digital educator with a rich background spanning over a decade in crafting detailed tutorials and insightful explainer posts. With a passion for demystifying the complexities of the online world, he has dedicated his career to empowering individuals by enhancing their digital literacy.\",\"url\":\"https:\/\/themeisle.com\/blog\/author\/bill-w\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Optimize WordPress Robots.txt File for Better SEO","description":"Want to optimize WordPress robots.txt file? This step-by-step guide will teach you exactly how to do that.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/","og_locale":"en_US","og_type":"article","og_title":"How to Optimize WordPress Robots.txt File for Better SEO","og_description":"Want to optimize WordPress robots.txt file? This step-by-step guide will teach you exactly how to do that.","og_url":"https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/","og_site_name":"Themeisle Blog","article_published_time":"2017-08-30T12:25:57+00:00","og_image":[{"width":1090,"height":545,"url":"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/08\/optimize-wordpress-robots-txt-file.jpg","type":"image\/jpeg"}],"author":"Bill Widmer","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Bill Widmer","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/#article","isPartOf":{"@id":"https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/"},"author":{"name":"Bill Widmer","@id":"https:\/\/themeisle.com\/blog\/#\/schema\/person\/9894ce8d6f41812816dd1796876e99ae"},"headline":"How to Optimize WordPress Robots.txt File for Better SEO","datePublished":"2017-08-30T12:25:57+00:00","mainEntityOfPage":{"@id":"https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/"},"wordCount":969,"commentCount":8,"publisher":{"@id":"https:\/\/themeisle.com\/blog\/#organization"},"image":{"@id":"https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/#primaryimage"},"thumbnailUrl":"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/08\/optimize-wordpress-robots-txt-file.jpg","articleSection":["Marketing &amp; SEO","WordPress Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/","url":"https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/","name":"How to Optimize WordPress Robots.txt File for Better SEO","isPartOf":{"@id":"https:\/\/themeisle.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/#primaryimage"},"image":{"@id":"https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/#primaryimage"},"thumbnailUrl":"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/08\/optimize-wordpress-robots-txt-file.jpg","datePublished":"2017-08-30T12:25:57+00:00","description":"Want to optimize WordPress robots.txt file? This step-by-step guide will teach you exactly how to do that.","breadcrumb":{"@id":"https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/#primaryimage","url":"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/08\/optimize-wordpress-robots-txt-file.jpg","contentUrl":"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/08\/optimize-wordpress-robots-txt-file.jpg","width":1090,"height":545,"caption":"how to optimize WordPress robots.txt file"},{"@type":"BreadcrumbList","@id":"https:\/\/themeisle.com\/blog\/optimize-wordpress-robots-txt-file\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/themeisle.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Optimize WordPress Robots.txt File for Better SEO"}]},{"@type":"WebSite","@id":"https:\/\/themeisle.com\/blog\/#website","url":"https:\/\/themeisle.com\/blog\/","name":"Themeisle Blog","description":"WordPress Tutorials and Reviews for Beginners and Advanced","publisher":{"@id":"https:\/\/themeisle.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/themeisle.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/themeisle.com\/blog\/#organization","name":"VertiStudio","alternateName":"Vertigo Studio SA","url":"https:\/\/themeisle.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/themeisle.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2024\/02\/VertiStudio_logo1.png","contentUrl":"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2024\/02\/VertiStudio_logo1.png","width":718,"height":156,"caption":"VertiStudio"},"image":{"@id":"https:\/\/themeisle.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/themeisle.com\/blog\/#\/schema\/person\/9894ce8d6f41812816dd1796876e99ae","name":"Bill Widmer","description":"Bill is a seasoned technology writer and digital educator with a rich background spanning over a decade in crafting detailed tutorials and insightful explainer posts. With a passion for demystifying the complexities of the online world, he has dedicated his career to empowering individuals by enhancing their digital literacy.","url":"https:\/\/themeisle.com\/blog\/author\/bill-w\/"}]}},"_links":{"self":[{"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/posts\/8838","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/comments?post=8838"}],"version-history":[{"count":18,"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/posts\/8838\/revisions"}],"predecessor-version":[{"id":100042,"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/posts\/8838\/revisions\/100042"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/media\/8937"}],"wp:attachment":[{"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/media?parent=8838"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/categories?post=8838"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/tags?post=8838"},{"taxonomy":"hashtags","embeddable":true,"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/hashtags?post=8838"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}