title: Undefined index when using rewriteRule in wamp
body: <p>I have new project and I am using htaccess to rewrite the URLs. I'm sure there's nothing wrong in my code as I tested it today in xamp and on 000webhost and it worked without any problems.</p>
  
  <p>But when I test the same scripts in wampServer <code>$_GET</code> isn't working on the PHP page, where I get this error:</p>
  
  <p><code>output is Notice: Undefined index: key in D:\wamp64\www\cp\examples.php on line 5</code></p>
  
  <p>The problem is with wampServer server. Maybe there is something I should change, but I do not know where the problem lies exactly.</p>
  
  <p>Note: I enabled <code>rewrite_module</code> from wampServer apache module. </p>
  
  <p>htaccess code:</p>
  
  <pre><code>Options +FollowSymLinks
  RewriteEngine On
  RewriteBase /cp/
  RewriteRule ^examples.html$ examples.php //it's working
  RewriteRule ^examples/([a-zA-Z0-9]+)?$ examples.php?key=$1
  </code></pre>
  
  <p>The fifth line of htaccess isn't working with PHP when using:</p>
  
  <pre><code>echo $_GET['key']; //output is Notice: Undefined index: key in D:\wamp64\www\cp\examples.php on line 5
  </code></pre>