{"action":"opened","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/1146","labels_url":"https://api.github.com/repos/magento/magento2/issues/1146/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/1146/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/1146/events","html_url":"https://github.com/magento/magento2/issues/1146","id":65054540,"number":1146,"title":"A few issues when you use /pub as DocumentRoot","user":{"login":"hostep","id":85479,"avatar_url":"https://avatars.githubusercontent.com/u/85479?v=3","gravatar_id":"","url":"https://api.github.com/users/hostep","html_url":"https://github.com/hostep","followers_url":"https://api.github.com/users/hostep/followers","following_url":"https://api.github.com/users/hostep/following{/other_user}","gists_url":"https://api.github.com/users/hostep/gists{/gist_id}","starred_url":"https://api.github.com/users/hostep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hostep/subscriptions","organizations_url":"https://api.github.com/users/hostep/orgs","repos_url":"https://api.github.com/users/hostep/repos","events_url":"https://api.github.com/users/hostep/events{/privacy}","received_events_url":"https://api.github.com/users/hostep/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-29T12:03:49Z","updated_at":"2015-03-29T12:03:49Z","closed_at":null,"body":"Hi\r\n\r\nI noticed a few issues while using the `pub` directory as DocumentRoot:\r\n- Creating robots.txt file only generates it in the Magento root directory\r\n- Same problem with creating sitemap.xml file\r\n\r\nA way to fix this is to generate those files in both those directories, but is that really a good solution?\r\n\r\nShouldn't you encourage the use of the `pub` directory and discourage using the Magento root directory?\r\nThere was already a discussion happening in https://github.com/magento/magento2/issues/372 about this.\r\n\r\nThanks!"}}