title: TCPDF cache problems when using https
body: <p>We have been using TCPDF to create PDFs on the fly for a while now and everything has been working fine.</p>
  
  <p>However, we changed to https today using the following htaccess code:</p>
  
  <pre><code>RewriteCond %{SERVER_PORT} 80 
  RewriteRule ^(.*)$ https://www.berau.at/$1 [R,L]
  </code></pre>
  
  <p>Now we are getting the following TCPDF error:</p>
  
  <pre><code>TCPDF ERROR: [Image] Unable to get image: /home/.sites/64/site1783/web/pdf2/cache/img_UgqqR0
  </code></pre>
  
  <p>If we remove the htaccess redirect for https, everything works fine again.</p>
  
  <p>We've searched the TCPDF website, but no references to https problems there.</p>
  
  <p>The TCPDF cache folder already has 755 permissions!</p>
  
  <p>Here's the code we're using to call the image:</p>
  
  <pre><code>$img_file = $rs_produkt[20];
  $pdf-&gt;Image($img_file, 0, 0, 0, 0, '', '', '', false, 300, '', false, false, 0);
  </code></pre>
  
  <p>Thanks in advance for any help!</p>