Redirection with referer header
-
Is it possible to make a redirection from the attachment URL media to S3 sending a referer header?
Example: In my Media Library i can see a link that points directly to the media auto-generated page (https://mysite.com/attachment/myimage/)
With WP Offload Media, instead opening wordpress website with the image, this will do a “301 redirect” to https://s3.sa-east-1.mybucket.com/mymedia/myimage.jpg , for example.
The redirection from (https://mysite.com/attachment/myimage/) to (https://s3.sa-east-1.mybucket.com/mymedia/myimage.jpg) could have a referer header (Referer: https://mysite.com/attachment/myimage/)? Is it possible?
- The topic ‘Redirection with referer header’ is closed to new replies.