on-internet
← Community

Server side redirect with ReactJs

Stack Overflow ·

I am trying to issue a server side redirect for certain pages for SEO reasons. The problem I am trying to solve is that some of my pages will get index by google, so if they are deleted or taken offline we want to redirect them to a different page rather than showing 404. What is the best way to achieve such redirects with React Router on the server side(express.js)?

Comments

Sign in or sign up to comment and upvote.

No comments yet.