Mod_rewrite on all website images
Posted
by Esteve Camps
on Stack Overflow
See other posts from Stack Overflow
or by Esteve Camps
Published on 2010-05-31T11:12:24Z
Indexed on
2010/06/16
9:32 UTC
Read the original article
Hit count: 175
I'm designing an image repository. I want to uncouple the filename from the image html link. For instance:
- image in filesystem is called
images/items/12543.jpg
- HTML is
<img src="images/car.jpg" />
Does anyone strongly discourages me to rewrite all image requests using PHP so when retrieving images/car.jpg
, Apache really replies content from images/items/12543.jpg
?
I don't know if I may get performance problems.
© Stack Overflow or respective owner