0

An outside company is making a website, they are working on LAMP, there is an IIS server at our place so I have to prepare this server for the implementation. Preliminarily it has been prepared (I mean it works normally) however there is a problem with the plugin that substitutes jpg files for webp (webp-express plugin). The entire wordpress folder has an awful lot of .htaccess files ~25, most of them are almost empty so converting to web.config would not be a problem. The problem gets when, some htaccess files don't pass through URL Rewriter(that function in the panel with import roles).

RewriteRule (?i)(.*)(\.jpe?g|\.png)$ /wp-content/webp-express/webp-images/uploads/%2%3\.webp [T=image/webp,E=EXISTING:1,E=ADDVARY:1,L]

RewriteRule (?i).*$ /wp-content/plugins/webp-express/wod/webp-on-demand.php [E=WE_WP_CONTENT_REL_TO_WE_PLUGIN_DIR:../../,E=WE_SOURCE_REL_HTACCESS:$0,E=WE_HTACCESS_ID:uploads,NC,L]

Both of these rules return an error

<!-- The rule cannot be converted into an equivalent IIS format unsupported flags:E--> 

What will you advise to do in this situation? As a last resort, if nothing goes I will urge to change to Linux.

Raloseq
  • 1
  • 1

0 Answers0