I’m using WP, & I want to use a mod_rewrite
rule such that all images from wp-content/uploads
folder shows a different URL.
eg:
www.example.com/wp-content/uploads/image.jpeg
—>
www.example.com/media/image.jpeg
I’ve placed a rule in .htaccess
but it returns a 404 error.
RewriteRule ^wp-content/uploads/(.*)$ /media/$1 [L,NC,R]
Are you looking for something like this (all of these rules need to be before the default wordpress rules):