X
X
XenK2015-10-10 07:58:23
Laravel
XenK, 2015-10-10 07:58:23

Laravel 5 redirect?

I started studying the Laravel 5 framework. The question arose, how to make a redirect, for example, from any non-existent URL, for example, http://site.ru/user/9999to http://site.ru?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Muhammad, 2015-10-10
@XenK

Create a 404 page handler ( www.techigniter.in/tutorials/create-custom-error-p... ) and add a redirect to it:
redirect('http://site.ru');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question