Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,155,899 members, 7,828,166 topics. Date: Wednesday, 15 May 2024 at 04:10 AM |
Nairaland Forum / Science/Technology / Webmasters / How To Optimize Your Wordpress Robots.txt File (754 Views)
Please Help, My Robots.txt File Is Showing Error 404 / Steps To Add Ads.txt File To Blogger For Google Adsense / Add Ads.txt File To Blogger Blogs Via Settings (2) (3) (4)
(1) (Reply)
How To Optimize Your Wordpress Robots.txt File by Gizmomachine: 1:21pm On May 14, 2018 |
One of the easier way to optimize your wordPress sites Robots.txt File, is if your are using Yoast SEO plugin. The plugin comes with a tool section that gives you access to create and edit your Robot.txt file. To do this, simply go to Yoast SEO plugin,>> Tool>>File editor, click on it and a new page will open and you will see the default WordPress robots.txt file there. To optimize, simply copy and paste the code as it is below to the box that says Robot.Txt. After doing that, change the www.yourwebsite.com URL to yours. User-agent: * Disallow: /wp-admin/ Disallow: /wp-content/plugins/ Disallow: /readme.html Disallow: /trackback/ Disallow: /wp-includes/ Disallow: /go/ Disallow: /xmlrpc.php Disallow: /index.php Allow: /wp-admin/admin-ajax.php Allow: /wp-content/uploads/ Sitemap: https://www.yourwebsite.com/post-sitemap.xml Sitemap: https://www.yourwebsite.com/page-sitemap.xml Source: https://www.gizmolad.com/2018/05/how-to-optimize-your-wordpress-robots-txt-file/ |
(1) (Reply)
Who Has Facebook Page For Sale?? (100k Likes And Above) / This Could Be Your Chance! / Come Let Me Show You How To Do These Stuffs
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 7 |