Title: X-Robots-Tag?
Last modified: January 8, 2018

---

# X-Robots-Tag?

 *  Resolved [dsb0328](https://wordpress.org/support/users/dsb0328/)
 * (@dsb0328)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/x-robots-tag/)
 * 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](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/x-robots-tag/#post-9846285)
 * 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](https://wordpress.org/support/users/dsb0328/)
 * (@dsb0328)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/x-robots-tag/#post-9846314)
 * 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](http://accel.swizzlestickstudios.com)
   if you’d like to see.
 * The one I’m trying to add to is [http://absoluteedge.swizzlestickstudios.com](http://absoluteedge.swizzlestickstudios.com)
 *  Theme Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/x-robots-tag/#post-9848208)
 * 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](https://wordpress.org/support/users/dsb0328/)
 * (@dsb0328)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/x-robots-tag/#post-9848739)
 * 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](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/x-robots-tag/#post-9849719)
 * No problem 🙂

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

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

 * ![](https://i0.wp.com/themes.svn.wordpress.org/generatepress/3.6.1/screenshot.
   png)
 * GeneratePress
 * [Support Threads](https://wordpress.org/support/theme/generatepress/)
 * [Active Topics](https://wordpress.org/support/theme/generatepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/generatepress/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/generatepress/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Tom](https://wordpress.org/support/users/edge22/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/x-robots-tag/#post-9849719)
 * Status: resolved