Serving from CDN and URL is incorrect
-
I’ve updated my htaccess file to include the cdn url, but when the pdf viewer tries to display the content, it is not getting the full url. It gets the main host, but not the identifying information.
For example:
What I need:
https://cdnserver.com/mysitesinfo/wp-content/uploads/date/file.pdfWhat the plugin is trying to display:
https://cdnserver.com/wp-content/uploads/date/file.pdfThis is resulting in a 502 error:
Message: Unexpected server response (502) while retrieving PDF https://cdnserver.com/wp-content/uploads/date/file.pdf.If I edit the block as html and paste in the correct cdn url, I can get it to function. But when I use my actual domain and let the server convert the url, I get the error.
Any guidance?
- The topic ‘Serving from CDN and URL is incorrect’ is closed to new replies.