.htaccess - htaccess rewrite all image requests from a non-existent folder to folder-name.jpg -
here's trying do, example . . .
http://www.website.com/images/folder-with-a-crazy-name/any-image-at-all.jpg
would rewrite . . .
http://www.website.com/images/folder-with-a-crazy-name.jpg
does make sense?
any appreciated.
to rewrite jpeg image files in folder folder .jpg
appended
rewriterule ^images/(.+?)/[^/]+?\.jpg$ /images/$1.jpg [l]
Comments
Post a Comment