title: htaccess rewrite rule with : in the url on windows
body: <p>I'm trying to do a rewrite rule that'll allow only <code>P00:0:R</code> It's for a pagination system for a website.</p>
  
  <p>I tried it using php, and it works fine. But how do I get something like this into a rewrite rule?</p>
  
  <pre><code>$x = 'P10:10:R';
  
  if(pageNos($x)) {
      echo 'Passed';
  } else {
      echo 'Failed';
  }
  
  //
  function pageNos($page) {
      if(preg_match('/^[P]{1}[0-9]{1,10}[:]{1}[0-9]{1,10}[:]{1}[L|R]{1}$/',$page)) {
          return true;
      } else {
          return false;
      }
  }
  </code></pre>
  
  <p>All I get with rule is</p>
  
  <pre><code>RewriteEngine On
  
  RewriteRule ^/?([P]{1}[0-9]{1,10}[:]{1}[0-9]{1,10}[:]{1}[L|R]{1}+)/?$ /test/index.php [NC,L]
  </code></pre>
  
  <p>Forbidden</p>
  
  <pre><code>You don't have permission to access /P10:2:R on this server.
  </code></pre>