title: Apache rewrite for Laravel /public
body: <p>I am sorry about this, but my htdocs root is wrong and I can't change that. So I have to make it work in the <code>/public</code> folder.</p>
  
  <p>I use the normal Laravel .htaccess file with the following rewrite:</p>
  
  <pre><code>RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php/$1 [L]
  </code></pre>
  
  <p>If I open <code>http://kemtime2_neu.pr.domain.de/public</code> I get redirected to <code>http://kemtime2_neu.pr.domain.de/public/http://kemtime2_neu.pr.domain.de/public/login</code></p>
  
  <p>How can I fix this?</p>
  
  <p>I would love to make it work from <code>http://kemtime2_neu.pr.domain.de/</code> but getting it to work with <code>http://kemtime2_neu.pr.domain.de/public/</code> would be fine.</p>