There is a valid address
Next, write RewriteCond $ 1 - HOW the $ 1 line looks like (like "/image.gif" or "image.gif") ???
I want to redirect from to, but only if this image file is requested (.gif ...).
So I write, but even does not work

RewriteCond $1 ^(\w*\.gif|\w*\.jpg|\w*\.jpeg)$ RewriteRule ^(.*)$ folder/$1 

Help me please.

    1 answer 1

    Try this:

     RewriteEngine on RewriteRule ^(\w*\.gif|\w*\.jpg|\w*\.jpeg)$ /folder/$1