0

我在 PrestaShop 上拥有 Multistore 功能。我想将“noindex,nofollow”添加到我的一家商店。我有主店:例如。www.shop.com 和第二家商店,例如。www.shop.com/shop2。我只想将“noindex,nofollow”添加到“shop2”。

感谢帮助!

4

1 回答 1

1

此代码工作正常!

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

于 2018-06-21T09:18:54.263 回答