URL rewriting trick
Hi. I have SESSION.shopID variable in my application.
My images are in a /resources/img/ folder.
Now I want to do a "shop based theming" so I make a /resources/001/img and a /resources/002/img folder.
It will be nice to make the Application.cfc adding that id on request of /resources/img (without changing any reference on existing pages).
Sample:![]()
the customer logged with shopID = 2 requests /resources/img/happy.png .
Application.cfc analyses that pattern and put " /#SESSION.shopId# " after /resources.
How can I achieve this?
