Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to handle redirects defined in WP? #1878

Unanswered
traed asked this question in Q&A
Discussion options

Using the plugin Redirection we can easily define redirects from a source URL to a target URL in WP admin. But this doesn't seem to have any effect since it's the frontend that handles routing of the request. What is the suggested way of handling redirects from the frontend side?

You must be logged in to vote

Replies: 2 comments 1 reply

Comment options

Did you find the solution to this problem @traed?

You must be logged in to vote
0 replies
Comment options

We ended up using getStaticProps (or getServerSideProps) in [...wordPressNode].tsx to catch any 404, then get the redirect items from GQL, check if there's matching one and if yes, redirect. I would've loved to have this built in to faust though.

You must be logged in to vote
1 reply
Comment options

Thanks @traed !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /