1

I am using: header("Location: https://www.link.com"); but I want to be able to specify a no-follow in it. In another post someone explained to use header("X-Robots-Tag: noindex, nofollow", true);. But how do I combine them? I tried header("X-Robots-Tag: noindex, nofollow; Location: https://www.link.com"), true); but it did not work. Does anyone know the correct syntax? Thanks

Wahyu Kristianto
  • 8,719
  • 6
  • 43
  • 68

1 Answers1

1

You call it multiple times:

header("X-Robots-Tag: noindex, nofollow");
header("Location: https://www.example.com");
Robson
  • 2,008
  • 2
  • 7
  • 26