ExpressJS Routing (P5D38) - Live Coding with Jesse
FBTwitterReddit
video description
Rating: 4.0; Vote: 1
Project 5 Day 38: I need to make the URLs from the old site work with the new site as well. Today we are going to do some work with Express and NodeJS keep all the URLs working.
.
Next.js 5: https://zeit.co/blog/next5
Project Repo: https://github.com/fus-marcom/franciscan-react
React: https://facebook.github.io/react/
Gitter: https://gitter.im/LiveCodingwithJesseFreeCodeCamp/
Cristian: You could just use your Apache .htaccess file to permanently redirect old URLs to new URLs like so: Options +FollowSymLinks RewriteEngine on RewriteRule -photo/old-photo/?$ /photo/new-photo [NC,L,R=301] Or you could use Nginx to redirect the old URLs if you use that web server. Date: 2022-03-14