Hi @boenvu,
Thank you for your message. I am sorry you have encountered a problem with our plugin. Do not worry, I will try to help you.
I want to see what might have gone wrong. Could you send me a screenshot of the Help Center tab in the plugin’s settings. I will check it because in this tab I have an information on how to solve the problem.
Additionally, could you send me the content of the .htaccess file from the /wp-content directory?
Best, Mateusz
Thread Starter
boenvu
(@boenvu)
Thanks for your feedback
I have attached screenshots of the Help Center tab in the settings of the “plugins” in the previous topic. I will attach it again:
https://ibb.co/6vFBvKX
https://ibb.co/m47FCLR
https://ibb.co/DY5Dxbh
https://ibb.co/P66Jt3t
https://ibb.co/Dwnqpgc
And this is the content of the .htaccess file from the /wp-content directory:
# BEGIN Converter for Media
# ! --- DO NOT EDIT PREVIOUS LINE --- !
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteOptions Inherit
RewriteCond %{HTTP_ACCEPT} image/avif
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpg.avif -f
RewriteRule (.+)\.jpg$ /wp-content/uploads-webpc/$1.jpg.avif [NC,T=image/avif,L]
RewriteCond %{HTTP_ACCEPT} image/avif
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.png.avif -f
RewriteRule (.+)\.png$ /wp-content/uploads-webpc/$1.png.avif [NC,T=image/avif,L]
RewriteCond %{HTTP_ACCEPT} image/avif
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.gif.avif -f
RewriteRule (.+)\.gif$ /wp-content/uploads-webpc/$1.gif.avif [NC,T=image/avif,L]
RewriteCond %{HTTP_ACCEPT} image/avif
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.webp.avif -f
RewriteRule (.+)\.webp$ /wp-content/uploads-webpc/$1.webp.avif [NC,T=image/avif,L]
RewriteCond %{HTTP_ACCEPT} image/avif
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpeg.avif -f
RewriteRule (.+)\.jpeg$ /wp-content/uploads-webpc/$1.jpeg.avif [NC,T=image/avif,L]
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteOptions Inherit
RewriteCond %{HTTP_ACCEPT} image/webp
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpg.webp -f
RewriteRule (.+)\.jpg$ /wp-content/uploads-webpc/$1.jpg.webp [NC,T=image/webp,L]
RewriteCond %{HTTP_ACCEPT} image/webp
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.png.webp -f
RewriteRule (.+)\.png$ /wp-content/uploads-webpc/$1.png.webp [NC,T=image/webp,L]
RewriteCond %{HTTP_ACCEPT} image/webp
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.gif.webp -f
RewriteRule (.+)\.gif$ /wp-content/uploads-webpc/$1.gif.webp [NC,T=image/webp,L]
RewriteCond %{HTTP_ACCEPT} image/webp
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.webp.webp -f
RewriteRule (.+)\.webp$ /wp-content/uploads-webpc/$1.webp.webp [NC,T=image/webp,L]
RewriteCond %{HTTP_ACCEPT} image/webp
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpeg.webp -f
RewriteRule (.+)\.jpeg$ /wp-content/uploads-webpc/$1.jpeg.webp [NC,T=image/webp,L]
</IfModule>
<IfModule mod_headers.c>
<FilesMatch "(?i)\.(jpg|png|gif|webp|jpeg)(\.(webp|avif))?$">
Header append Vary "Accept"
</FilesMatch>
</IfModule>
# ! --- DO NOT EDIT NEXT LINE --- !
# END Converter for Media
@boenvu Thank you for sending the information. What hosting are you using?
Thread Starter
boenvu
(@boenvu)
I’m using Stable Host‘s hosting service
Server information: LiteSpeed
PHP version: 7.4.33
@boenvu Thank you for your patience.
To thoroughly test it, I created an account at stablehost.com and bought hosting. I have the default hosting configuration – Web Hosting in the Starter version. I didn’t change anything other than the default PHP version – changed from 5.3 to 7.4.
Then I installed WordPress and my plugin there.
Everything works without problems. Are you also using this hosting and default configuration?
Thread Starter
boenvu
(@boenvu)
Thanks for your help, i appreciate you for it
Yes. I use default hosting and configuration.
I use the W3 Total Cache plugin. I don’t know if it’s compatible with Converter for Media
Thread Starter
boenvu
(@boenvu)
Ah however! if the Image Load Mode item I configure is Pass Thru (without rewrites in .htaccess files or Nginx configuration) then there is no error. But that would break my site
@boenvu Pass Thru is not a good solution. I do not recommend it. The plugin cache shouldn’t cause such problems.
Could you ask tech support if they block redirects from .htaccess file somehow and why? Due to the fact that they may do this for security reasons, please send me a reply directly to the e-mail address: hello(at)mattplugins.com – so as not to give confidential information here.
Thread Starter
boenvu
(@boenvu)
Thanks for your great support