title: Mod_Rewrite and SuPHP - a php redirect
body: <p>I have just upgraded from shared hosting to a managed VPS with godaddy. My problem is that my links no longer work.  The link URL is run through Mod_Rewrite.  it rewrites the incoming URL to go to a php script that redirects the links.  This is good for me because it cloaks the link. </p>
  
  <p>For some reason it does not work now.  There are no errors.  The URL just shows in the browser address bar but it is not redirected.   This worked on the shared hosting.  </p>
  
  <p>Here are the details of my set up.
  CentOS &amp; cPanel
  php 5.5
  suPHP is the handler being used
  AllowOverride ALL is enabled (by default I believe)
  RewriteEngine On (in .htaccess)</p>
  
  <p>This is the rule in my .htaccess</p>
  
  <pre><code>    RewriteEngine On
  RewriteRule ^take_me_to/([/_0-9a-zA-Z-]+)?$ xx/xx.php?id=$1
  </code></pre>
  
  <p>This is what's in my go.php file </p>
  
  <pre><code>    &lt;?php
  if ($id == "ID taken from the link URL") {$url =affiliate URL}   
  
  header("Location: $url");
      exit();
  ?&gt;
  </code></pre>
  
  <p>I do not know if the problem is with the rewrite, or how the script is being run.  Any ideas?</p>