views:

13

answers:

1

I have folder which path is .com/yp/uploads and i have another folder .com/uploads

I want to do htaccess rule like this: If .com/yp/uploads/abc.jpg(or another file extension) doesn't exists then show .com/uploads/abc.jpg

Thank you.

A: 
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/yp/uploads/(.*) /uploads/$1 [L,R=301]
toscho