1

I have b2b and b2c websites in my magento2 project.

Is there a want to stop Google to index my product images and details in b2b website, I don't need SEO on b2b.

How can I achieve this?

3
  • Do you want to stop indexing for whole page or just image and description? Commented Mar 14, 2019 at 17:58
  • I need it for whole page, I don't want any data related to b2b website to be indexed by google. Image, Product name, Description, price etc. But I need all for them for b2c.
    – fernandus
    Commented Mar 14, 2019 at 18:08
  • Let me give you answer on it Commented Mar 14, 2019 at 18:13

1 Answer 1

3

In admin Go to:

Content -> Design -> Configuration

Edit Global settings

In Search Engine Robots tab:

Select Default Robots value to "Noindex, Nofollow"

Flush cache.

In addition You can also disallow all bots not to crawl your website by adding robots.txt in your project root directory and pub directory

robots.txt will contains following lines

User-Agent: *
Disallow: /
4
  • 2
    I think @fernandus is asking to disable SEO only for B2B website. So, instead of disabling it in global level, you should disable it on website level. Commented Mar 14, 2019 at 20:07
  • I have done this on Website level Content -> Design -> Configuration->B2B Website I can find both "Noindex, Nofollow" and robots.tx options to apply for only B2B, Thank You. Is the anything I can do more to make more secure.
    – fernandus
    Commented Mar 15, 2019 at 13:17
  • That's enough for your website not to index by any search index Commented Mar 15, 2019 at 16:38
  • Please mark answer correct if it is helpful to you, so that in future it would be helpful for others Commented Mar 15, 2019 at 16:58

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.