我有多商店功能的PrestaShop上的商店。我想要添加"noindex,nofollow“到我的一个商店。我有一个主要的商店。www.shop.com和第二个商店例如。www.shop.com/shop2.我只想在"shop2“中添加"noindex,nofollow”。
感谢您的帮助!
发布于 2018-06-21 17:18:54
这段代码很好用!
{if strstr($smarty.server.REQUEST_URI, 'hurt') !== false} <meta name="robots" content="noindex,nofollow"> {else} <meta name="robots" content="index,follow"> {/if}
https://stackoverflow.com/questions/50963316
复制相似问题