Last week I launched a website and created a robots.txt:
User-agent: *
Disallow:
Sitemap: http://mywebsite.tld/sitemap_robots.xml
Now I've checked the indexed pages (Google -> site:mywebsite.tld) and found links to subfolders and non-public/internal files, that are place outside of the web root of the website. E.g.: mywebsite.tld/vendor/, mywebsite.tld/module/, mywebsite.tld, mywebsite.tld/dev/, mywebsite.tld/vendor/zendframework/zendframework/tests/ZendTest/Test/PHPUnit etc.
Why are such folders being indexed? Why is it possible, if they are placed outside of the website root and there are not links to them? How to avoid indexing of such paths?
EDIT
The folder structure of my website is:
/composer.json
/composer.lock
/composer.phar
/config/
/data/
/dev/
/init_autoloader.php
/LICENSE.txt
/module/
/public/ <-- web root
/README.md
/temp/
/vendor/
It's a common structure of a Zend Framework 2 project (with some additional folders). The document root is the folder public (set in Plesk):



mywebsite.tld/module/are definitely not valid, and return a 404, right? – DisgruntledGoat Apr 29 at 15:57