laravel - Redirecting to another website using Redirect::to() -
when use redirect::to($url) result:
http://localhost/http://mysite.com/foo/bar.html but when use redirect::to('http://google.com') goes google fine, guess problem is?
you need provide qualifying url redirect::to() method, otherwise application base url prepended.
$url = 'www.google.com'; // redirects http://localhost:8888/www.google.com return redirect::to($url); $url = 'http://google.com'; // redirects http://google.com return redirect::to($url);
Comments
Post a Comment