提问者:小点点

Prestashop-noindex,多存储中的nofollow


我在PrestaShop上有多商店功能的商店。我想把“noindex,nofollow”添加到我的一个商店中。我有一家主要的商店。com和第二家商店,如www.shop。com/shop2。我只想在“shop2”中添加“noindex,nofollow”。

谢谢你的帮助!


共1个答案

匿名用户

这个代码很好用!

{if strstr($smarty.server.REQUEST_URI, 'hurt') !== false} <meta name="robots" content="noindex,nofollow"> {else} <meta name="robots" content="index,follow"> {/if}