Link Header for PDFs not working in Dev and Stage Environment
Hi everyone,
We are using AEM as a Cloud Service. I'm trying to set the Link header for PDFs using the following Apache configuration:
<LocationMatch "\.(?i:pdf)$">
ForceType application/pdf
Header set Content-Disposition inline
RewriteRule ^ - [E=FILENAME:https://%{HTTP_HOST}%{REQUEST_URI}]
Header set Link '<%{FILENAME}e>; rel="canonical"'
</LocationMatch>
The code works in my local environment but not in dev. I've verified serverName and serverAlias are correct. Any help resolving this issue would be appreciated!
The expected result should be like below image:

Update: Above apache configuration is working for AMS in dev and stage environment. However, It's not working for AEM as a cloud services in dev and stage environments.
Thanks
Hi @raja_reddy @sureshdhulipudi @aanchal-sikka
Any idea about this isssue?