Noindex, Nofollow Tag


#1

hi,

How can I add noindex, nofollow http header tag for certain page on Nginx?


#2

you can add here

/etc/nginx/sites-avalable/

add_header  X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";

#3

If it is a WordPress site then it will help:


#4

Above response describes perfect method for the affiliate link or any custom link.

For blog post, you may use Yoast.

  1. Check page editor
  2. Yoast advanced settings