webp & uploads directory routes are wrong (Server configuration)
-
Hello
I’ve been using your plugin for a while now and it used to work like a charm but after update 1.2.7 and 1.3.0 it stopped working.
I looked for the server configuration part in the plugin and I notice that webpc_uploads_path, webpc_uploads_webp, webpc_dir_path (uploads) routes are wrong, they have a double // before the wp-content folder for example: (webpc_uploads_path /nas/content/live/mywebsite//wp-content/uploads)
But this does not happen with the new folders:
webpc_dir_path (plugins) /nas/content/live/mywebsite/wp-content/plugins
webpc_dir_path (themes) /nas/content/live/mywebsite/wp-content/themesBut don’t really know why it is doing this.
This is the Nginx rule I am using:
location ~ /wp-content/uploads/(?<path>.+)\.(?<ext>jpe?g|png|gif)$ { if ($http_accept !~* "image/webp") { break; } add_header Vary Accept; add_header Cache-Control "public, max-age=31536000"; add_header Vary "Accept-Encoding"; add_header Access-Control-Allow-Origin *; try_files /wp-content/uploads-webpc/uploads$path.$ext.webp $uri =404; }
Any idea why the routes changed? Is this why the plugins stopped serving webp files? (because the images are being created, but they are not being served)
Thank you.
The page I need help with: [log in to see the link]
- The topic ‘webp & uploads directory routes are wrong (Server configuration)’ is closed to new replies.