title: Find serial number and redirect to appropriate url
body: <p>I am creating a series of QR codes with serial numbers with a URL;
  <a href="https://example.com/qr/qr.php?c=00000000000000001" rel="nofollow noreferrer">https://example.com/qr/qr.php?c=00000000000000001</a></p>
  <p>I would like the various ranges of serial numbers to go to the appropriate page.</p>
  <p>I had the idea to create a PHP page to handle the redirection, but I am struggling to get the numbers in the range.</p>
  <p>Open to suggestions for alternative ways to do this.</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Finding your code ... &lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;?php
  // directs the user to page based on code
  
  $code = $_GET['c'] ;
  $page1 = 'https://example.com/dogs';
  $page2 = 'https://example.com/cats';
  $page3 = 'https://example.com/frogs';
  $page4 = 'https://example.com/cows';
  
  
  
  if( $code &gt;= 1 || $code &lt;= 10  or
      $code &gt;= 100 || $code &lt;= 150 )
   {
     //echo $page1 ; 
  header('Location: .$page1') ;
      die() ;
  }
  
  if($code &gt;= 11 || $code &lt;= 20) {
  
   //      echo $page2 ; 
  header('Location: .$page2') ;
      die() ;
  }
  
  if($code &gt;= 21 || $code &lt;= 30) {
      //        echo $page3 ; 
  header('Location: .$page3') ;
      die() ;
  }
  
  if($code &gt;= 31 || $code &lt;= 40) {
      //    echo $page4 ; 
  header('Location: .$page4') ;
      die() ;
  }
  
  ?&gt;
  &lt;/body&gt;
  &lt;/html&gt; 
  
  </code></pre>
  <p>Any help is appreciated.  Many thanks.</p>