I am havian an issue with RewriteCond in Apache. I've URL myurl.com/cache/100x100/filename.digital and I have to see if the file is available. However , for me personally matters not this exact path, but different one. I have to see if the file /images/100x100/filename.digital is available. Is it feasible? At this time I've:

RewriteCond %{REQUEST_URI} ^/cache/([0-9x]*)/(.*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f

How do i change this to check on different file? Can there be anything like replace?

For the reason that situation, you most likely want something similar to RewriteCond %/images/%1/%2 !-f