[ad_1]
Hi @lebac,
Thank you for your message.
You can achieve the desired effect by using filters provided in plugins. I have prepared such a filter for you:
add_filter( 'webpc_htaccess_mod_rewrite', function ( $rules ) {
return preg_replace(
'/(RewriteCond %{HTTP_ACCEPT} image\/(?:[a-z]+))/',
'$1' . PHP_EOL . ' RewriteCond %{QUERY_STRING} !(^|&)' . 'load-original' . ' [NC]',
$rules
);
} );Please add this to the functions.php file in your theme directory and save the plugin settings again. To display an image in its original format, add the following suffix to the URL: ?load-original.
Does this solve your problem?
Best, Mateusz
Thread Starter
lebac
(@lebac)
Thank you for quick response!
Script works great!
