Wiff
Forum Replies Created
-
OK, I will speak to them and see what I can find out, if nothing, I guess I will have to see what other solutions are available in the plugin market. Thanks for your help, if I do find any solution I will let you know.
I ran your option to Regenerate all, I assume that this should convert anything JPG,JPEG or PNG in the /wp-content/uploads/ folder and put a copy of them in the /wp-content/uploads-webpc/
I hadn’t realised that it deleted the folder when you delete the app, so I ran the Regenerate All option again
The advertising banner images will not be included as they are in a separate folder at the moment in the root level of the site, but I was expecting the others to be there.
I haven’t checked every file, but the largest ones are in the new “uploads-webpc” folder, I would have expected them to have been replaced?
https://www.adultgamesnews.com/wp-content/uploads/2020/02/developer-options.jpg
Two such examples are https://www.adultgamesnews.com/wp-content/uploads-webpc/2020/01/hot-octopuss-logo.jpg.webp and https://www.adultgamesnews.com/wp-content/uploads-webpc/2013/08/agn_header.png.webp
I am at a loss as to why this isn’t working, and have no idea where to start looking?
[Moderator note: WARNING, these sites are NSFW]
- This reply was modified 6 years, 4 months ago by Wiff.
- This reply was modified 6 years, 4 months ago by Wiff.
- This reply was modified 6 years, 4 months ago by Steven Stern (sterndata).
I did as you said, disabled the plugin, then deleted it. I went to add a new plugin and installed yours again. I still cannot see differences in the code that your plugin has added? Below are the contents of both .htaccess files (I downloaded the original before doing anything)
It still shows the original type when using the developer panel? Sorry, can you think of anything else? When this is resolved I think I will have to get you that coffee 🙂
This is the new code from the reinstalled plugin:
# BEGIN WordPress
# The directives (lines) betweenBEGIN WordPressandEND WordPressare
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.# BEGIN WebP Converter
<IfModule mod_mime.c>
AddType image/webp .webp
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_ACCEPT} image/webp
RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpg.webp -f
RewriteRule wp-content/uploads/(.+)\.jpg$ wp-content/uploads-webpc/$1.jpg.webp [T=image/webp]
RewriteCond %{HTTP_ACCEPT} image/webp
RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpeg.webp -f
RewriteRule wp-content/uploads/(.+)\.jpeg$ wp-content/uploads-webpc/$1.jpeg.webp [T=image/webp]
RewriteCond %{HTTP_ACCEPT} image/webp
RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.png.webp -f
RewriteRule wp-content/uploads/(.+)\.png$ wp-content/uploads-webpc/$1.png.webp [T=image/webp]
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/webp “access plus 1 year”
</IfModule>
# END WebP Converter<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule># END WordPress
This is the code from the previous install:
# BEGIN WordPress
# The directives (lines) betweenBEGIN WordPressandEND WordPressare
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.# BEGIN WebP Converter
<IfModule mod_mime.c>
AddType image/webp .webp
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_ACCEPT} image/webp
RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpg.webp -f
RewriteRule wp-content/uploads/(.+)\.jpg$ wp-content/uploads-webpc/$1.jpg.webp [T=image/webp]
RewriteCond %{HTTP_ACCEPT} image/webp
RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpeg.webp -f
RewriteRule wp-content/uploads/(.+)\.jpeg$ wp-content/uploads-webpc/$1.jpeg.webp [T=image/webp]
RewriteCond %{HTTP_ACCEPT} image/webp
RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.png.webp -f
RewriteRule wp-content/uploads/(.+)\.png$ wp-content/uploads-webpc/$1.png.webp [T=image/webp]
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/webp “access plus 1 year”
</IfModule>
# END WebP Converter<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule># END WordPress
- This reply was modified 6 years, 4 months ago by Wiff.
The plugin version is 1.1.0, it is not showing that any further updates are required. I did as you suggested but to me .htaccess still looks the same? What should it look like?
I have tried it again as the plugin says it was updated 12 hours ago, but it still seems to show the original file type instead of webp; any ideas?