How to redirect old URLs to new Routes

Asked by: boon
Viewed: 352
Answers: 1
  • 0


I’m building a new site with Laravel to replace my old one. How can I redirect old URLs to the new ones?


Answer by: ChristianKovats

Answered on: 25 Jan 2023

  • 0

You can do it with routes.

For example, if your old page was 

and the new page is do it like this:

Route::redirect('/articles', '/blog', 301);


You should keep these redirects for at least a year according to Google.

Please log in to post an answer!