• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.3 Can I stop Google indexing an off-topic forum without closing it for guests?

CyclingTribe

Well-known member
#1
I'd like to exclude all threads and posts from my off-topic forum from Google's index, but at the same time keep the threads viewable for guests - is this possible?

Thanks,
Shaun :D
 

Chris D

XenForo developer
Staff member
#2
Basically add this to a few templates:

Code:
<xen:if is="{$forum.node_id} == 2">
    <xen:container var="$head.noindex">
        <meta name="robots" content="noindex" /></xen:container>
</xen:if>
Where 2 is the forum that should be noindex.

Specifically, thread_view and forum_view but there may be others.