I am attempting to rewrite URLs like the following:
domain.com/news/12/imgname.jpg
to
domain.com/image.php?img=12/imgname
I am using the following in my .htaccess file, but it does not seem to be working:
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^news/([0-9]+\/.*)\.jpg$ image.php?img=$1 [L]
Can anyone help me see what I've done wrong?