Next.js Discord

Discord Forum

Redirect to a specific route when open a website

Answered
Northeast Congo Lion posted this in #help-forum
Open in Discord
Avatar
Northeast Congo LionOP
Hi, how would you implement the following behaviour:
for example the website address is something.com, but any time someone tries to access it it should open the page something.com/default-option
As an example I often see similar behaviour on e-commerce websites (like here www.zalando.it)

2 Replies

Avatar
joulev & fuma pray for Schneider
Answer
Avatar
joulev & fuma pray for Schneider
redirect from / to /whatever-you-want