htaccess rewrite?

Posted by flyenig on Server Fault See other posts from Server Fault or by flyenig
Published on 2012-09-17T21:17:49Z Indexed on 2012/09/17 21:41 UTC
Read the original article Hit count: 195

Filed under:
|
|

i have a script that uploads images, creates a hash for it, creates 3 directories, and stores the image to

imgs/f3s/v5g/234/536_f3sv5g2344270fd093ee8a9bf8de3de32dad.jpg

(the “536_” is the user id)

so im trying to turn

imgs/f3s/v5g/234/536_f3sv5g2344270fd093ee8a9bf8de3de32dad.jpg

into

user_pics/536/536_f3sv5g2344270fd093ee8a9bf8de3de32dad.jpg

how can i do that? i want that if someone wants to view the photo, they see the new directory in the url, not the one with 3 sub directories.

© Server Fault or respective owner

Related posts about .htaccess

Related posts about rewrite