PHP URL Redirect - Am I Doing This Right?
<p>I want a link on my site to redirect like such...</p>

<p><a href="http://mysite.com?url=1" rel="nofollow">http://mysite.com?url=1</a></p>

<pre><code>$offer = $_GET['url'];

if ($offer == '1'){
  header("Location: http://site1.com");
}
if ($offer == '2'){
  header("Location: http://site2.com");
}
</code></pre>

<p>This is functional, but is there a better way to do this rather than having 50 if statements?</p>
