I am trying to delete a disallow
condition from robots.txt
file. This is not located in root
or /pub directories
.
I can't change it from admin panel because seems like Magento 2.3.0 has a bug on theme edit page.
Thanks
I am trying to delete a disallow
condition from robots.txt
file. This is not located in root
or /pub directories
.
I can't change it from admin panel because seems like Magento 2.3.0 has a bug on theme edit page.
Thanks
It seems your Nginx or Apache is set differently. Try locating the file in var directory. If you have SSH access, run below command to see if there is a robots file on server.
Check if there is a robots file on server locate -c robots.txt
If the result found is greater than 0, it means the file exists on the server. Next, you can run below command to find the location
locate robots.txt
root
directory. newly created file now showing on website. I don't know why!
Commented
Feb 12, 2019 at 7:53
Magento2.3.5 have a module to return a robots.txt page so is not finically in the server in a location.
See Ref: https://github.com/magento/magento2/blob/2.4-develop/app/code/Magento/Robots/Controller/Index/Index.php in execute()
method.
Also look in controller Router.php to have an idea!
Hope it helps!
root
directory. newly created file now showing on website. I don't know why!