title: Laravel Redirect::route() going to wrong url on vhost
body: <p>I was working on some code today and sent a <code>Redirect::route()</code>. Instead of redirecting to the base_url/route as usual, it duplicated the base_url like this:</p>
  
  <p><a href="http://myurl.dev/http://myurl.dev/myroute" rel="nofollow">http://myurl.dev/http://myurl.dev/myroute</a></p>
  
  <p>I figured I did something wrong, so I went back and tried to isolate the problem. I ended up starting a new project with a new vhost and putting this tiny bit of code in <em>app/routes.php</em>:</p>
  
  <pre class="lang-php prettyprint-override"><code>Route::get(
      'test1',
      [
          'as' =&gt; 'test1',
          function () {
              return Redirect::route('test2');
          }
      ]
  );
  
  Route::get(
      'test2',
      [
          'as' =&gt; 'test2',
          function () {
              return 'test2hello';
          }
      ]
  );
  </code></pre>
  
  <p>When I open <a href="http://myurl.dev/test1" rel="nofollow">http://myurl.dev/test1</a> in a browser, instead of just showing "test2hello" it threw and http not found error because <a href="http://myurl.dev/http://myurl.dev/test2" rel="nofollow">http://myurl.dev/http://myurl.dev/test2</a> was not found. This only happens on <code>Redirect::route()</code>, it works as expected on <code>Redirect::to()</code>. It also only happens on vhosts; <code>Redirect::route()</code> works as expected if I go to localhost/myurl/public/test1. Any ideas?</p>
  
  <hr>
  
  <p><em>UPDATE:</em></p>
  
  <p>I was asked for my vhost setup. I am on Mac OSX 10.8.5 and am using the built-in Apache. I've uncommented the <em>httpd-vhosts.conf</em> include line in <em>/etc/apache2/httpd.conf</em>. I've added a few vhosts to <em>/etc/apache2/extra/httpd-vhosts.conf</em>, here's one:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      DocumentRoot "/Library/WebServer/Documents/example_blog/public"
      ServerName example_blog.local
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>and the corresponding line in <em>/etc/hosts</em>:</p>
  
  <pre><code>127.0.0.1   example_blog.local
  </code></pre>
  
  <p>and restarted Apache. The folder is named <code>example_blog.local</code>.</p>