0

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?

  • Do you want to stop indexing for whole page or just image and description? – Shoaib Munir Mar 14 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 Mar 14 at 18:08
  • Let me give you answer on it – Shoaib Munir Mar 14 at 18:13
1

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: /
  • 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. – Bunyamin Inan Mar 14 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 Mar 15 at 13:17
  • That's enough for your website not to index by any search index – Shoaib Munir Mar 15 at 16:38
  • Please mark answer correct if it is helpful to you, so that in future it would be helpful for others – Shoaib Munir Mar 15 at 16:58

Your Answer

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

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