• Resolved qph9697

    (@qph9697)


    Redirects on your server are not working. Check the correct configuration for you in the plugin FAQ. If your configuration is correct, it means that your server does not support redirects from the .htaccess file or requests to images are processed by your server bypassing Apache. In this case, please contact your server administrator.

    Hi before creating this support ticket, I had contacted my server admin about the issue and they had said that there is no issue on their end and support .htaaccess re-directs.

    I even checked my server configuration, it seems fine after comparing it from the FAQ
    https://ibb.co/WPDyDHf
    https://ibb.co/S6d0s3S

    PHP version: 7.4.8

    .htaaccess file [wp-content]

    # BEGIN WebP Converter
    # ! — DO NOT EDIT PREVIOUS LINE — !
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_ACCEPT} image/webp
    RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpg.webp -f
    RewriteCond %{HTTP_HOST}@@%{HTTP_REFERER} ^([^@]*)@@https?://\1/.*
    RewriteRule (.+)\.jpg$ /wp-content/uploads-webpc/$1.jpg.webp [NC,T=image/webp,E=cache-control:private,L]
    RewriteCond %{HTTP_ACCEPT} image/webp
    RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpeg.webp -f
    RewriteCond %{HTTP_HOST}@@%{HTTP_REFERER} ^([^@]*)@@https?://\1/.*
    RewriteRule (.+)\.jpeg$ /wp-content/uploads-webpc/$1.jpeg.webp [NC,T=image/webp,E=cache-control:private,L]
    RewriteCond %{HTTP_ACCEPT} image/webp
    RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.png.webp -f
    RewriteCond %{HTTP_HOST}@@%{HTTP_REFERER} ^([^@]*)@@https?://\1/.*
    RewriteRule (.+)\.png$ /wp-content/uploads-webpc/$1.png.webp [NC,T=image/webp,E=cache-control:private,L]
    </IfModule>
    # ! — DO NOT EDIT NEXT LINE — !
    # END WebP Converter

    .htaacess [/upload-webp/]

    # BEGIN WebP Converter
    # ! — DO NOT EDIT PREVIOUS LINE — !
    <IfModule mod_mime.c>
    AddType image/webp .webp
    </IfModule>
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/webp “access plus 1 year”
    </IfModule>
    # ! — DO NOT EDIT NEXT LINE — !
    # END WebP Converter

    .htaaceess [/uploads/]

    # BEGIN WebP Converter
    # ! — DO NOT EDIT PREVIOUS LINE — !
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_ACCEPT} image/webp
    RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/uploads/$1.jpg.webp -f
    RewriteCond %{HTTP_HOST}@@%{HTTP_REFERER} ^([^@]*)@@https?://\1/.*
    RewriteRule (.+)\.jpg$ /wp-content/uploads-webpc/uploads/$1.jpg.webp [NC,T=image/webp,E=cache-control:private,L]
    RewriteCond %{HTTP_ACCEPT} image/webp
    RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/uploads/$1.jpeg.webp -f
    RewriteCond %{HTTP_HOST}@@%{HTTP_REFERER} ^([^@]*)@@https?://\1/.*
    RewriteRule (.+)\.jpeg$ /wp-content/uploads-webpc/uploads/$1.jpeg.webp [NC,T=image/webp,E=cache-control:private,L]
    RewriteCond %{HTTP_ACCEPT} image/webp
    RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/uploads/$1.png.webp -f
    RewriteCond %{HTTP_HOST}@@%{HTTP_REFERER} ^([^@]*)@@https?://\1/.*
    RewriteRule (.+)\.png$ /wp-content/uploads-webpc/uploads/$1.png.webp [NC,T=image/webp,E=cache-control:private,L]
    </IfModule>
    # ! — DO NOT EDIT NEXT LINE — !
    # END WebP Converter

    # BEGIN WebP Express
    # The directives (lines) between BEGIN WebP Express and END WebP Express are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    # Plugin is deactivated
    # END WebP Express

    Please help me here.

    Thank You.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 48 total)
  • Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Hi @qph9697,

    Thanks for your message.

    I think I know what your problem is. Could you test beta version of plugin for me?

    Download it from here and install it on your website:
    https://gbiorczyk.pl/webp-converter-for-media-v1.4.2.zip

    Should you see another error in the admin panel? Let me know what the error is.

    Thread Starter qph9697

    (@qph9697)

    Yes sure, I will check the beta version.

    Thread Starter qph9697

    (@qph9697)

    Hi, it didn’t work.

    I am getting this issue

    Your server uses the cache for redirects. The rules from .htaccess file or from Nginx configuration are not executed every time when the image is loaded, but the last redirect from cache is performed. For browsers supporting WebP, the redirection should be to an image in WebP format, and for browsers not supporting WebP there should be no redirection. Disable server cache for redirects. Please contact your server administrator.

    I am on a litespeed server and using litespeed cache plugin.

    • This reply was modified 4 years, 3 months ago by qph9697.
    • This reply was modified 4 years, 3 months ago by qph9697.
    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @qph9697, now we know what the problem is.
    Please read the error message carefully and do what it says.

    Thread Starter qph9697

    (@qph9697)

    Hi, it didn’t work.

    I am getting this issue

    Your server uses the cache for redirects. The rules from .htaccess file or from Nginx configuration are not executed every time when the image is loaded, but the last redirect from cache is performed. For browsers supporting WebP, the redirection should be to an image in WebP format, and for browsers not supporting WebP there should be no redirection. Disable server cache for redirects. Please contact your server administrator.

    I am on a litespeed server and using litespeed cache plugin.

    Thread Starter qph9697

    (@qph9697)

    Please read the error message carefully and do what it says.

    I will contact my server admin. And let you know how it went.

    Thank You.

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @qph9697, please see the error message. Everything is explained there.

    Thread Starter qph9697

    (@qph9697)

    Hi, just a question, does “Disable server cache for redirects.” have an impact on the website? I mean in a negative way? Like the load time, or speed or SEO or any other?

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    It is all about the cache for redirections from the .htaccess file.

    When you have it turned on and you enter from a browser supporting WebP, you will be redirected. Then, when someone accesses Safari that does not support WebP, they will have to redirect to WebP and the images will be corrupted because Safari does not support WebP.

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @qph9697, I have got some idea. Please download the beta version of the plugin again (the link is the same, but I made some changes to the code):
    https://gbiorczyk.pl/webp-converter-for-media-v1.4.2.zip

    And then turn the plug off and on again. There should be small changes to the .htaccess file. Then restart the server to clear the LiteSpeed cache.

    Thread Starter qph9697

    (@qph9697)

    Yes sure, I will try this. How to “restart the server”. Does it mean to clear the litespeed cache.

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Yes, please clear the LiteSpeed cache. Also check if the content of .htaccess files has changed.

    Thread Starter qph9697

    (@qph9697)

    Okay yes sure.

    Thread Starter qph9697

    (@qph9697)

    It’s showing the same error,

    Your server uses the cache for redirects. The rules from .htaccess file or from Nginx configuration are not executed every time when the image is loaded, but the last redirect from cache is performed. For browsers supporting WebP, the redirection should be to an image in WebP format, and for browsers not supporting WebP there should be no redirection. Disable server cache for redirects. Please contact your server administrator.

    And purging the cache also didn’t help.

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Can you show the contents of the .htaccess files again?

Viewing 15 replies - 1 through 15 (of 48 total)
  • The topic ‘Server Configuration Error – Failed to Regenerate’ is closed to new replies.