title: php link cloak via base64 encryption -- need help
body: <p>I used to have a script that basically base64 encoded the link and then the redirect PHP page would decode it and send you off to the page.</p>
  
  <p>I don't know what I am doing wrong and PHP is not my best skill, just looking for some help.</p>
  
  <p>Link on page:</p>
  
  <pre><code>&lt;a href="http://www.XXXXXX.com/find.php?shop=&lt;?php echo urlencode(base64_encode("long ass link goes here"));  ?&gt;"&gt;Test&lt;/a&gt; 
  </code></pre>
  
  <p>find.php:</p>
  
  <pre><code>&lt; ?php
  
      $request_id = $_GET ['shop'];
      $site = base64_decode($request_id);
  
      header( 'Location: $site' ) ;
  
  ?&gt;
  </code></pre>