title: How to pass URL with parameter, as a parameter?
body: <p>I'm trying to pass a URL as a parameter, but that URL also has parameters. Of course these parameters are important and must be transmitted and properly interpreted.</p>
  
  <p>For example : 
  <a href="http://example.com/myclicktrackingscript.php?source=sidebar&amp;url=http://example.com/redirect_to.php?site=site1" rel="nofollow">http://example.com/myclicktrackingscript.php?source=sidebar&amp;url=http://example.com/redirect_to.php?site=site1</a></p>
  
  <p>(yes I know, I could click track and redirect all at once in one file, but in some specific situations, I just can't : sometimes I need to pass whatever URL with parameters AS a parameter)</p>
  
  <p>So far i've used URL rewriting :
  <a href="http://example.com/redirect_to.php?site=site1" rel="nofollow">http://example.com/redirect_to.php?site=site1</a> => <a href="http://example.com/redirect/site1/" rel="nofollow">http://example.com/redirect/site1/</a></p>
  
  <p>.. but that's not very handy (too many specific situations where I need more flexibility)</p>
  
  <p><strong>Is there a better way to do that ?</strong></p>
  
  <p>My guess is maybe hashing the parameter URL :</p>
  
  <p>For example : <a href="http://example.com/myclicktrackingscript.php?source=sidebar" rel="nofollow">http://example.com/myclicktrackingscript.php?source=sidebar</a>$url=REJREJ12333232rerereE</p>
  
  <p>... but how to "dehash" it properly ?</p>
  
  <p>I've never used such technique, has anyone any examples / tips / advice about how to do so ?</p>
  
  <p>Thanks</p>