.htaccess style rewrite with php

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Hello, I currently have a file system where images and assets are
stored in a directory like this:


Which holds many differents clients assets, seperated by CLIENT_NAME.
This is not very elegant when my clients want to provide links to
their files, so I want a way of using php (or any other method you
might suggest) to make the following work:


This cannot be a simple redirect as that would not work for including
files in htm templates. It has to do a similar thing as .htaccess
rewrite, however I cannot use .htaccess since the client name is

Anybody any thoughts?

Site Timeline