title: Laravel secure redirect filter working in my local, but not on server
body: <p>I have a filter which redirects the user to https:// part of the site. I have tested this on my local and it works as it should, but when I test it on the live website, it doesn't work at all.</p>
  
  <p>Any ideas why this would be? My local is using XAMPP running on Windows 7. My server is CentOS 6.</p>
  
  <p>Here's my filter...</p>
  
  <pre><code>Route::filter('secure', function()
  {
      if(!Request::secure())
      {
          return Redirect::secure(Request::path());
      }
  };
  </code></pre>
  
  <p>And my routes</p>
  
  <pre><code>Route::group(array('before' =&gt; 'secure', 'prefix' =&gt; '{regionSlug}/{parkSlug}'), function(){
      // List of routes go here.
  });
  </code></pre>
  
  <p>EDIT: After taking a further look, I noticed that it wasn't working properly on my local either. The only reason it worked is because of my login check which redirects and moves over to the https part of the site. Any other page inside this route group didn't actually work. I took out the https in each of my get and post routes and this managed to fix it.</p>