Share
How to redirect old URLs to new Routes
Question
Hi,
I’m building a new site with Laravel to replace my old one. How can I redirect old URLs to the new ones?
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Answer ( 1 )
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:
You should keep these redirects for at least a year according to Google.