Stop indexing nopcommerce multistore

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
8 years ago
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.
8 years ago
I would also appreciate a response to this query.  How can you stop multistores from being indexed and only allow the primary store to be indexed?
7 years ago
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.

Any ideas?
7 years ago
Hi,

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.
7 years ago
The shop is running NopCommerce 3.8.0

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.
7 years ago
I have just checked source code. robots.custom.txt overrides robots.txt globally. It won't work for a specific domain name only.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.