Resolving Images after URL Changes - .htaccess
Posted
by Chetan
on Stack Overflow
See other posts from Stack Overflow
or by Chetan
Published on 2010-04-29T04:55:32Z
Indexed on
2010/04/29
4:57 UTC
Read the original article
Hit count: 223
.htaccess
Hi,
I have done few changes and unable to get my images resolved correctly.
Old = http://www.domain.com/dir/images/*.jpg
New = http://www.domain.com/old_dir/images/*.jpg
I am using the following RewriteRule,
RewriteRule ^dir/images/(.*)\.jpg$ old_dir/images/$1\.jpg [R=301]
Doesn't work, any pointers on how to get to work the images resolved correctly ?
Thanks
© Stack Overflow or respective owner