title: Using https with Laravel throws apache error
body: <p>I’m trying to make sure all of the routes used within my Laravel project use <code>https</code>. </p>
  
  <p>I tried doing this by adding a redirect in my <code>App::before()</code> filter in the `filter.php file like so:</p>
  
  <pre><code>if (!Request::secure()){
      return Redirect::secure(Request::path());
  }
  </code></pre>
  
  <p>This definitely rewrites my urls to use <code>https</code> instead of <code>http</code>, but the page comes back with an Apache error:</p>
  
  <blockquote>
    <p>Not Found</p>
    
    <p>The requested URL /register was not found on this server.</p>
    
    <p>Apache/2.4.9 (Ubuntu) Server at beta.mysite.com Port 443</p>
  </blockquote>
  
  <p>Is there something else I need to change to allow laravel to see https requests?</p>
  
  <p><strong>EDIT:</strong> Here’s my current <code>.htaccess</code> file’s contents:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      #Options -MultiViews
      RewriteEngine On
      RewriteBase /
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule ^(.*)$ /index.php?/$1 [L]
  
      RewriteCond %{SERVER_PORT} 80
      RewriteRule ^(.*)$ https://beta.mysite.com/$1 [R,L]
  &lt;/IfModule&gt;
  </code></pre>