title: Having two undefined index (email and code, probably because of my htaccess file)
body: <p>Im doing a newsletter system, where a user enter his mail inside my input text and click on submit to subscribe in newsletter.</p>
  
  <p>After he click on submit, he will receive an email, saying to confirm his subscription he needs to click in a link that I make available in this email.</p>
  
  <p><strong>This is the link:</strong></p>
  
  <pre><code>&lt;p&gt;To confirm your subscription click on link below:&lt;/p&gt;
      &lt;a href="http://localhost/website/newsletter/confirm?email='.$email.'&amp;amp;code='.$code.'"&gt;Confirm Subscription&lt;/a&gt;
  </code></pre>
  
  <p>And this link will redirect to my newsletter confirmation page where I Will get email and code and then I will do an update on my subscribers table.</p>
  
  <pre><code>$email = $_GET['email'];
  $code= $_GET['code'];
  $pdo = start();
  $updSub = $pdo-&gt;prepare("UPDATE subscribers set status= ? WHERE code = ?");
  $updSub-&gt;bindParam(2,$code);
  $updSub-&gt;execute();
  </code></pre>
  
  <p><strong>But Im having this two notices:</strong></p>
  
  <p>Notice: Undefined index: email in F:\Xampp\htdocs\website\newsletter\confirm.php </p>
  
  <p>Notice: Undefined index: code in F:\Xampp\htdocs\website\newsletter\confirm.php </p>
  
  <p>Do you see why this can be happening? Im using a .htaccess file, dont know if it may be because of that, some problem with passing variables code and email in url.</p>
  
  <p>This is my htaccess file:</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{SCRIPT_FILENAME} !-f
  RewriteCond %{SCRIPT_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?url=$1
  </code></pre>
  
  <p>My query string:</p>
  
  <pre><code>@$url = $_GET['url'];
  $url = explode('/', $url);
  $url[0] = ($url[0] == NULL ? 'index' : $url[0]);
  
  if(file_exists('template/'.$url[0].'.php')){
      require_once('template/'.$url[0].'.php');
  }elseif(@file_exists('template/'.$url[0].'/'.$url[1].'.php')){
      require_once('template/'.$url[0].'/'.$url[1].'.php');
  }
  else{
      require_once('template/404.php');
  }
  </code></pre>