is this robot.txt correct for the wordpress blog because in my webmaster tools it shows that there are arnd 150 urls that are restricted by the robot.txt so how can i solve this problem.... User-agent: * Disallow: /wp-content/ Disallow: /wp-admin/ Disallow: /wp-includes/ Disallow: /wp- Disallow: /feed/ Disallow: /trackback/ Disallow: /cgi-bin/ User-agent: Googlebot Disallow: /*.php$ Disallow: /*.js$ Disallow: /*.cgi$ Disallow: /*.xhtml$ Disallow: /*.php* Disallow: */trackback* Disallow: /*?* Disallow: /z/ Disallow: /wp-* Disallow: /*.inc$ Disallow: /*.css$ Disallow: /*.txt$ Allow: /wp-content/uploads/ User-agent: Googlebot-Image Allow: /* Code (markup):
Looks like you block virtually everything apart from /wp-content/uploads/ which usually needs to be blocked.
can u correct it so it allows everything and i htink thats the reason that google cant crawl in to my website
Yeah. How can they as you tell the poor Googlebot to go away Try using only the following; This would block any spider [honours robots.txt] from accessing what it shouldn't in a typical wordpress blog. User-agent: * Disallow: /wp-content/ Disallow: /wp-admin/ Disallow: /wp-includes/ Disallow: /wp- Disallow: /feed/ Disallow: /trackback/ Disallow: /cgi-bin/ Code (markup): Don't forget to resubmit your sitemap with google webmaster tools after correcting the robots.txt
User-agent: * Disallow: /cgi-bin Disallow: /wp-admin Disallow: /wp-includes Disallow: /wp-content/plugins Disallow: /wp-content/cache Disallow: /wp-content/themes Disallow: /trackback Disallow: /comments Disallow: /category/*/* Disallow: */trackback Disallow: */comments Disallow: /*?* Disallow: /*? Allow: /wp-content/uploads # Google Image User-agent: Googlebot-Image Disallow: Allow: /* # Google AdSense User-agent: Mediapartners-Google* Disallow: Allow: /* # Internet Archiver Wayback Machine User-agent: ia_archiver Disallow: / # digg mirror User-agent: duggmirror Disallow: / Sitemap: http://www.yoursite.com/sitemap.xml
Your wish. My suggestion is to keep the minimal one I gave you. Either way resubmit the site via webmaster tools.