Best way to make a redirect link?
Posted on 2005-04-05
Would anyone know the best way to make a redirect link? I need to redirect quite a few links, basically I need to mask where a link goes to, so I guess it would need to be done with php or something. Here is the situation, on my site, users can get reports of their activity on the site, the problem is the link for their report shows the doc directory. It wouldn't take much trial and error for people to find a way of accessing other users docs. The docs are downloadable so I just need a way to mask the destination.
Does anyone know the best way to achieve this? Bearing in mind that the links are generated daily? I know I am probably fishing here so I would accept either some direct suggestions on how to do it or maybe links to redirect scripts or something?
Thanks for your time.
Oh, the site uses a mysql database and runs on an apache server.