Hi all!
Sorry for the late bump of this… but I have a domain in which I have a Joomla installation at / and WordPress at /blog. I only have 1 robots.txt file in / and here is what is currently in it:
*****************
User-agent: *
Allow: /sitemap.xml
Allow: /blog/sitemap.xml
Allow: /index.php
Allow: /blog/index.php
Disallow: /*.php$
Disallow: /blog/*.php$
Disallow: /*.js$
Disallow: /*.inc$
Disallow: /*.css$
Disallow: /*.wmv$
Disallow: /*.cgi$
Disallow: /*.xhtml$
Disallow: /*.php-dist$
Disallow: /*.ico$
Disallow: /blog/*.js$
Disallow: /blog/*.inc$
Disallow: /blog/*.css$
Disallow: /blog/*.wmv$
Disallow: /blog/*.cgi$
Disallow: /blog/*.xhtml$
Disallow: /blog/*.php-dist$
Disallow: /blog/*.ico$
Disallow: /administrator/
Disallow: /cache/
Disallow: /components/
Disallow: /editor/
Disallow: /help/
Disallow: /images/
Disallow: /includes/
Disallow: /language/
Disallow: /mambots/
Disallow: /media/
Disallow: /modules/
Disallow: /templates/
Disallow: /installation/
Disallow: /cgi-bin/
Disallow: /blog/wp-content/
Disallow: /blog/wp-admin/
Disallow: /blog/wp-includes/
Please take a look at the items highlighted in bold (particularly the first few)–and let me know if this is allowed (and especially if it will work) in the robots.txt file?
Also, should I have a separate robots.txt file for the /blog directory?
Many thanks!
David