Hi, I’m back with first results…
for converting .htaccess to nginx I use
https://www.anilcetin.com/
This converter is much better.
After converting htacces file I get this:
if ($http_referer !~* "^https://(.+.)?websitename.com"){
set $rule_0 1$rule_0;
}
if ($rule_0 = "1"){
rewrite ^/(.*).(jpg|png|jpeg|gif)$ /show-image/?img=/$1.$2 permanent;
}
This code need to enter to vhost.conf (if you have multiple websites that use nginx or nginx.conf if you have all website settings in one file ( I hope nginx users will understand).
Then need to restart nginx service/server:
nginx -s stop
and then start again
nginx
Firstly I configured plugin to work with option “Show text over image”
and all worked ok, after that I try solution with redirection and also have good result, just like you write for plugin.
Need to say that plugin now working much faster compared to the previous versions.
Remained to see how G search engine responds to 301/302 redirection and how it will work in future (indexing new content, status of old indexed images, position etc). I will write here my results.