• Resolved dsb0328

    (@dsb0328)


    Hey Tom. I know I have another question in to you at the moment, but I was wondering if you could help me with this too. I am trying to place this code Header set X-Robots-Tag "noindex, nofollow" into the .htaccess file so that a site in progress is not indexed, but it’s not showing up in my inspector after placing it in there. I also tried to place it into the wp_head section in the GP Hooks but that didn’t work either. Any ideas?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Tom

    (@edge22)

    If it’s added in .htaccess, it won’t show up in the inspector. From the look of that code, that’s the correct place to add it.

    Thread Starter dsb0328

    (@dsb0328)

    Are you sure? I put it in a different WordPress site’s .htaccess file that uses a different theme and this shows up in the head section of the inspector:

    <meta name="robots" content="noindex,follow">

    That site is http://accel.swizzlestickstudios.com if you’d like to see.

    The one I’m trying to add to is http://absoluteedge.swizzlestickstudios.com

    Theme Author Tom

    (@edge22)

    I believe that’s different – you can add that meta tag in “Settings > Reading” by checking the Search Engine Visibility option.

    That’s likely the easier option than having to mess with the .htaccess file.

    Thread Starter dsb0328

    (@dsb0328)

    That’s it! You are correct again. I noticed that I already had the part checked on the other site and didn’t need the code in the .htaccess. Thanks again so much for your help.

    Theme Author Tom

    (@edge22)

    No problem 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘X-Robots-Tag?’ is closed to new replies.