Hello im having touble to load files robots.txt and sitemap.xml site.webmanifest form https://example.com/robots.txt for example, since magento root directory is set under /pub through nginx.conf.sample (from Magento 2 installation). I can load files from http://example.com/pub/robots.txt but its not what i want. I want to be able to load files like https://example.com/robots.txt https://example.com/sitemap.xml etc. Any ide how to solve this?

  • Please check you have production mode is enable "bin/magento deploy:mode:show". Please make it "default" or "default" by "bin/magento deploy:mode:set {{mode}}" – Divyarajsinh Feb 15 at 10:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.