How to redirect old URLs to new Routes
- 0
Hi,
I’m building a new site with Laravel to replace my old one. How can I redirect old URLs to the new ones?
Answers
- 0
You can do it with routes.
For example, if your old page was yoursite.com/articles
and the new page is yoursite.com/blog do it like this:
Route::redirect('/articles', '/blog', 301);
You should keep these redirects for at least a year according to Google.