How can I change my displayed links from:
http://www.mysite.com/links3/jump.php?id=27&url=http://www.linkedsite.com
to just: http://www.linkedsite.com ?
I've got a small open source links management program that generates the URLs displayed to visitors in the format:
http://www.mysite.com/links3/jump.php?id=27&url=http://www.linkedsite.com
That link is generated by this code:
print("<div><a href=\"jump.php?id=$rec_id&url=$url\" title=\"Go to the website $name\"><strong>$name</strong></a> - $description</div>");
where jump.php is a small script that increments a counter for the number of times a link is clicked.
I'd like to change the code so that the counter still works but that the link the user (and a search engine) sees doesn't have all the extra stuff in it and is only: http://www.linkedsite.com
I've been told that one solution might be to use mod_rewrite for the URL, but I don't have a clue how to actually use that tool. Can someone please help?
Thanks,
-Danny.