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

XF 1.4 noindex a specific forum

dethfire

Well-known member
#1
I have a new member intro forum that is really junky to search engines. how do I noindex threads in that forum? I assume a conditional in page container?
 

Jake Bunce

XenForo moderator
Staff member
#2
Admin CP -> Appearance -> Templates -> thread_view

Add this code to the top:

Code:
<xen:if is="in_array({$thread.node_id}, array(80,81))">

<xen:container var="$head.robots">
    <meta name="robots" content="noindex" /></xen:container>

</xen:if>
You must specify the list of node_ids.
 
#3
I was looking for something like this, but with this solution, sitemap.php will still send URLs of those forums to Google.