title: Yourls - Some custom URL are shorten some not
body: <p>Some of my Pages gives a correct shorten URL back but some of the will not. Even they are shorten at Yourls. I can see it at the Admin Panel.</p>
  
  <p><strong>This is the debug of a Page with shorten URL</strong></p>
  
  <pre><code>{"status":"fail","code":"error:url","url":{"keyword":"09266","url":"http:\/\/domain.com\/LilyPad-Arduino-328-Main-Board","title":"LilyPad Arduino 328 Main Board","date":"2015-02-12 00:35:39","ip":"xxx.xxx.xxx","clicks":"0"},"message":"http:\/\/domain.com\/LilyPad-Arduino-328-Main-Board already exists in database","title":"LilyPad Arduino 328 Main Board","shorturl":"http:\/\/doma.in\/09266","statusCode":200,"qrcimg":"http:\/\/doma.in\/user\/plugins\/inline-qrcode\/images\/qrccf6f0d99893974288d48676d9cdbd51a.png","qrimage":"
  </code></pre>
  
  <p><strong>This is the debug of another Page without the URL on Page but available at Admin</strong></p>
  
  <pre><code>{"status":"fail","code":"error:keyword","message":"Short URL 00027 already exists in database or is reserved","statusCode":200,"qrcimg":"http:\/\/doma.in\/user\/plugins\/inline-qrcode\/images\/qrcd41d8cd98f00b204e9800998ecf8427e.png","qrimage":"
  </code></pre>
  
  <p><strong>This is my PHP Code</strong></p>
  
  <pre><code>function shortyourls(){
      global $smarty;
  
      // Inputs
      $shorturl   =   'http://' . $_SERVER['HTTP_HOST']  . $_SERVER['REQUEST_URI'];
      $signature  =   "123456789";
      $siteurl    =   "http://doma.in";
      $format     =   "json";
      $Artikel    =   $smarty-&gt;get_template_vars('Artikel');
      $title      =   http_build_query(array('title' =&gt; $Artikel-&gt;cName));
      $keyword    =   preg_replace("/[^0-9,.]/", "", ($Artikel-&gt;cArtNr));
  
      // Phases url
      $short = file_get_contents($siteurl.'/yourls-api.php?signature='.$signature.'&amp;action=shorturl&amp;url='.$shorturl.'&amp;format='.$format.'&amp;keyword='.$keyword.'&amp;'.$title);
  
      $url=json_decode($short,TRUE);
      $output = $url['shorturl'];
      echo $output;
  }
  </code></pre>
  
  <p>Any idea what is wrong?</p>