|
Posted by Andy Dingley on April 12, 2005, 6:32 pm
Please log in for more thread options
wrote:
>As I am not a professional programmer I would appreciate any pointers,
>examples, or any type of help in achieving my objective.
Do it the second way (server side). Mainly because it's _much_
easier to maintain your page content. You'll need to change all your
externally pointing links to have URLs of the form:
http:///redirector.php?url=http%3A%2F%2Ffoo%2Ecom%2Fbar%2Fbat%2Ehtml%3Fp%3D1%26q%3D23
which is simply the URL encoded form of
http://foo.com/bar/bat.html?p=1&q=23
The redirector page itself is probably downloadable from somewhere.
You only need one for the whole site and it just needs to log simply
the referrer page and the target URL. before performing a 301 redirect
to the supplied URL.
It's even optional to bother doing any logging - you could always pull
this information from the main server logs.
If you do it with events on the page, it needs to have scripting
running on the clients and it also needs more changes made to each
page of content.
|