custom headers for my specific file type.
Hello everyone
I want to set custom headers for my PDF files.
I created "_headers " file in my public html folder &
I added this:
*.pdf
X-Robots-Tag: noindex
for some reason this noindex header is also being added to html files.
can someone please help me, what am I doing wrong?
PS
in the mean time, I have created a robots.txt with this content
User-agent: *
Disallow: /*.pdf
my PDFs are not in any specific folder so cant set rule for that, I will need to set it for complete website
0 Replies