Saeid Saeid - 1 year ago 77
Apache Configuration Question

how to redirect a photo url to a new photo address in apache and php

In apache web server i want to make a special url . that each user request for it get its own photo ? how is possible with Url rewriting ?

or if it is possible through php code ?

For example i want a url like this :

when each user request for it get his own profile photo .

user 1 gets

user 2 gets

and so on ....

Answer Source

When a user opens you should internally rewrite that to a PHP script which reads the user id and determines which image to use. You can then simply include it and set the content type to image/png.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download