D
D
Dmitry Ivanov2018-02-13 10:15:43
Laravel
Dmitry Ivanov, 2018-02-13 10:15:43

How to make 301 redirect in laravel?

How can I implement a 301 redirect with laravel? Without resorting to .htaccess.
Or built-in (redirect('pige');) laravel redirect is 301.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alfss, 2018-02-13
@DmitrIvanov

https://laravel.com/docs/5.6/redirects
Route::get('foo', function(){
return redirect('/bar', 301);
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question