4

Where can I find the location of robots.txt file in the Magento root?

Checked pub folder also.

2 Answers 2

1

You have to configured a magento for generating robot.txt file.

Please follow this tutorial

https://support.hypernode.com/knowledgebase/create-robots-txt-magento-2/

1
  • thanks for the note, I'm having an idea how to configure it from a backend, but I want the location of the robots.txt file
    – sandip
    Commented Apr 25, 2018 at 4:47
1

It must be in root directory. Check this file here

<magento-root>/vendor/magento/module-config/Model/Config/Backend/Admin/Robots.php

First create robots.txt in root folder, give permission 777 and then follow this tutorial

https://support.hypernode.com/knowledgebase/create-robots-txt-magento-2/

Thanks

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.