I'm using the Modula Pro image gallery plugin for WordPress and all of the thumbnail images that load have either of these URL formats:
https://example.com/wp-content/uploads/sites/3/2020/08/filename-300x99999.jpg
https://example.com/wp-content/uploads/sites/3/2020/08/filename-99999x300.jpg
I'm also using LiteSpeed Cache and it's producing the same image about 3-4 times smaller in size with the following URL formats:
https://example.com/wp-content/uploads/sites/3/2020/08/filename-300x168.jpg
https://example.com/wp-content/uploads/sites/3/2020/08/filename-168x300.jpg
I've tried adding this to htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^(.+)-99999x300.jpg $1-169x300.jpg [QSA,L]
RewriteRule ^(.+)-300x99999.jpg $1-300x169.jpg [QSA,L]
</IfModule>
What am I doing wrong?