Imagify folder optimization error image not show and redirected

https://www.alvianuxio.eu.org/wp-content/uploads/2023/10/fouadios.jpg

(please specify the URL of the site on which you are experiencing the problem)

Error Message

I used imagify to optimize the folder but it got an error and the images couldn’t appear in all , And redirected to infinityfree error 404

Other Information

404 Not Found

The page you were looking for could not be found!

can you show a screen shot of the directory contents
https://www.alvianuxio.eu.org/wp-content/uploads/2023/10/

4 Likes

I checked your account and as far as I can see, the file is there.

However, I also see the following snippet in your .htaccess file:

# BEGIN W3TC WEBP
<IfModule mod_rewrite.c>
	RewriteEngine On
	RewriteCond %{HTTP_ACCEPT} image/webp
	RewriteCond %{REQUEST_FILENAME} (.+)\.(jpe?g|png|gif)$
	RewriteCond %1\.webp -f
	RewriteCond %{QUERY_STRING} !type=original
	RewriteRule (.+)\.(jpe?g|png|gif)$ $1.webp [NC,T=image/webp,E=webp,L]
</IfModule>
<IfModule mod_headers.c>
	<FilesMatch "\.(jpe?g|png|gif)$">
		Header append Vary Accept
	</FilesMatch>
</IfModule>
AddType image/webp .webp
# END W3TC WEBP

If I understand this code correctly, I takes any request to a .jpg, .jpeg, .png or .gif image and reroutes it to a URL with the same file name but with the .webp extension. But no such file exists.

Please try commenting out or removing this block and see if that helps. Please make sure to check the URL in private browsing/incognito mode to avoid problems with browser cache.

5 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.