-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Robots.txt is store-view on admin panel, but global on disk #2917
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi Magento team, Any updates regarding this issue? Thanks, |
I really like option 3 of @remkoj-ism's suggestions It would allow extension developers / integrators to also add logic to add contents to the robots.txt file. For example: I'm thinking about 3rd party layered navigation modules, which can sometimes add a whole bunch of query parameters to the product listing url's depending on how you filter/sort/search for products. In most of the cases, you don't want a search engine to index all those different combination of filters/sorting/search params. If those extensions were able to manipulate the contents of the robots.txt through some kind of API, they could dynamically add custom rules to the robots.txt about certain query parameters which should be ignored by search engines. Even Magento 2's stock layered navigation can benefit from this I believe. The key to this is caching, we don't want every request to run a whole bunch of queries against the database to built this file obviously. This is just a wild idea, might turn out to actually be a bad idea, I haven't really thought it through a lot :) |
Hello @remkoj-ism Please, provide the used version. If the problem is actual for a specific tag, please, specify it and be sure that the latest update was used. |
Hi Andrii ( @duhon ), This issue exists for all Magento 2.x versions. Hope it helps to resolve the issue faster since it is a blocker for all production websites. Thanks |
Any progress on this issue? At least internal ticket number :). |
Any updates regarding this issue? It affects all websites and its SEO/Marketing goals. |
@mcspronko, over at #1146 they mention MAGETWO-47607, so I guess this ticket also gets tracked in that issue. |
yes--Piotr expanded the scope of 47607 to include robots.txt in addition to sitemap |
@remkoj-ism, thank you for your report. |
While testing the SEO features of M2, I've identified a second issue, in addition to the bug described at #1146 at least the generated robots.txt is not compatible with a multi-site setup
Steps to reproduce
Suggested solution
I see three options:
The text was updated successfully, but these errors were encountered: