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
Asked
Active
Viewed 150 times
1

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

harry_belefonte
- 37
- 4
1 Answers
1
You call it multiple times:
header("X-Robots-Tag: noindex, nofollow");
header("Location: https://www.example.com");

Robson
- 2,008
- 2
- 7
- 26