• Resolved briandd

    (@briandd)


    With newer versions the plugin creates a htaccess file in the uploads folder with the following:

    <IfModule mod_mime.c>
    AddType image/webp .webp
    </IfModule>

    Can you add an option to disable this?

    This is not always allowed/wanted to mess up with the htaccess in some hostings. Also this rule is often useless

    • This topic was modified 2 years ago by briandd.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Venkat Raj

    (@webulous)

    Hi @briandd

    This will be added in one of our upcoming releases.
    Thanks for reporting

    WP-Optimize tries to create an htaccess file in the /wp-content/uploads/ folder. In my case this results in a PHP Warnings (“failed to open stream: Permission denied”) in the logs. Is there a way to disable this feature (create an htaccess file) if I’m not using caching or minification?

    Plugin Contributor Venkat Raj

    (@webulous)

    @freeth1nker The .htaccess file is to redirect JPG/PNG files to WEBP files. You could turn off that feature in the UI or by adding define('WPO_USE_WEBP_CONVERSION', false); to your wp-config.php file

    Please create your own thread if you have issues

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add option to disable htaccess rule’ is closed to new replies.