I am looking for an RegEX redirect rule to redirect the image file locations to a new location, whilst also removing part of the original url which is the name of the image
OLD URL:
/components/com_mijoshop/opencart/image/cache/catalog/ecom2/GM815-365x365.jpg
NEW URL:
/wp-content/uploads/nc/catalog/ecom2/GM815.jpg
So I need to change the directory path AND remove the ‘-365x365’ part of the url.
I can remove the part of the image name with the following, but unsure how to also change the path:
/(?'path'.*)-365x365.jpg /[path].jpg