• Resolved Sukanta Das

    (@sdtechie)


    Server configuration error
    It appears that your server does not support using .htaccess files from custom locations, or it requires additional configuration for the plugin to function properly.

    Please check our instruction which should help you solve your problem. This will allow the plugin to function properly.

    Error codes: rewrites_not_executed

    My hosting environment is : AWS, Bitnami, WordPress

    • This topic was modified 2 years, 5 months ago by Sukanta Das.

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

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

    (@mateuszgbiorczyk)

    Hi @sdtechie,

    Thank you for your message.

    Please tell me why are you sending this message to me? Have you read the content of this message?

    Best,
    Mateusz

    Thread Starter Sukanta Das

    (@sdtechie)

    I followed your guide: https://mattplugins.com/docs/bitnami-configuration

    But, my site is hosted on aws lightsail and the .htaccess is configured in that way: https://docs.bitnami.com/aws/apps/wordpress/administration/use-htaccess/

    Can you please let me know the code that your plugin ” Converter for Media – Optimize images | Convert WebP & AVIF” going to implement in the .htaccess so that i can manually implement the code in the /opt/bitnami/apache/conf/vhosts/htaccess/wordpress-htaccess.conf file

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @sdtechie Are you sure you have followed all the steps in the manual?

    Alternatively, you can add the following rules in the configuration file:

    <Directory "/opt/bitnami/APPNAME/wp-content">
      <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteOptions Inherit
    
        RewriteCond %{QUERY_STRING} original$
        RewriteCond %{REQUEST_FILENAME} -f
        RewriteRule . - [L]
    
        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.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]
    
        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.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|webp|jpeg)(\.(webp|avif))?$">
          Header always set Cache-Control "private"
          Header append Vary "Accept"
        </FilesMatch>
      </IfModule>
    </Directory>
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Problem to convert images’ is closed to new replies.