.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

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -