SlimDeluxe
New Pleskian
- Server operating system version
- Ubuntu 20.04
- Plesk version and microupdate number
- Obsidian 18.0.55
Hi,
I have the following in .htaccess:
This works fine in local development. I can see the header.
However, when in production, the header is not there. Please see attached image.
What is the reason behind this and how can I fix this?
I checked the Logs and there's no error when accessing a PDF file, so I suppose there's no problem with the .htaccess directive. It's just ignored. Other directives from the same .htaccess work ok.
Any help would be appreciated.
I have the following in .htaccess:
Apache config:
<Files ~ "\.pdf$">
Header set X-Robots-Tag "noindex, nofollow"
</Files>
This works fine in local development. I can see the header.
However, when in production, the header is not there. Please see attached image.
What is the reason behind this and how can I fix this?
I checked the Logs and there's no error when accessing a PDF file, so I suppose there's no problem with the .htaccess directive. It's just ignored. Other directives from the same .htaccess work ok.
Any help would be appreciated.