w3 total cache write a brokent url
I’m using w3 total cache, and I have a s3 bucket where I store all my files (wp-includes, wp-content/themes, wp-content/uploads), everything seems to work fine except for the themes directory
for examples, for the includes and uploads file the src or href attributes is written correctly, like:
<img src="https://bucketname.s3.amazonaws.com/wp-
content/uploads/2020/10/imagename.png">
but for the css and js that comes from themes directory is written like this
<link rel='stylesheet' id='animate-css' href='https://bucketname.s3.amazonaws.com/wp-
content/themes/theme-name//css/animate.css.gzip?ver=1.0.0' type='text/css' media='all'/>
notice there is an additional ‘/’ before ‘css’ as if there a directory without name,but when I open the file in new tab without the additional ‘/’ it work and aws bucket return the file.
Any idea why w3 total cache is doing this?
Leave an answer
You must login or register to add a new answer .