I have multi store environment set up on Nop Commerce 3.50. I don't want any of the store to be indexed by search engine.
Here are the things that i have done so far.
1 ) meta tag in _Root.Head.cshtml
<meta name="robots" content="noindex,nofollow"/> 2 ) Placed robot.txt in root folder.
User-agent: * Disallow: / Disallow: *.pdf$ Still some of the stores are getting indexed with the link to product details page. what additional changes are required to stop indexing my site completely.
I would also like to know how this can be realised. One of our stores requires the user to have a special account which can't be registered by the user himself and we also want the information to be restricted to users with an account. Therefore it is useless and unwanted for search engines to index this store.
NopCommerce handles /robots.txt route. By default, it disables account pages, cart, checkout, etc. In nopCommerce 3.80 you can upload robots.custom.txt to your site's root folder to overwrite default nopCommerce content.
As I remember, it wasn't like this in nopCommerce 3.50. You will have to create a plugin to register robots.txt route and send your custom robots.txt content.
Is it possible to configure the robots.custom.txt to only apply to the other (restricted) shop? This restricted shop runs on a subdomain of the 'normal' webshop's domain, that's why I'm asking.
Thank you, I will try the suggested robots.custom.txt.