Creating domain redirections
There are scenarios when you don't want your users to land on a particular page, but instead redirected to a different page altogether. for eg, if a user visits your landing page, you may first want to serve them with a Privacy Policy page. This is where domain redirections come into play.
A redirection redirects a user from one page to another, in the same website.
After adding a domain inside your project, you can start creating redirections for this specific domain. It's an optional step and should ONLY be performed if really required. Else, it can cause issues with your website, such website going into a loop of redirects, etc.
Follow below steps to create a custom redirect.
Click on the domain for which you want to create redirection. Then choose 'Add redirection'.
A new screen will open that will display all your existing Redirects, if any. Click on 'Add Redirect'. Add the start point and destination point in that. It should start with '/'. '/' signifies the root page of your website. And if you type '/privacy-policy', it signifies the privacy policy page of your website (it can be a different url for your website). So, decide the start point like when a user visits '/this-page', then redirect them to '/that-page'.
This feature is very powerful, but at the same time should be used with caution.
Note:
Redirections should ONLY be performed if really required. Else, it can cause issues with your website, such website going into a loop of redirects, etc.
The source and destination page should start with '/'. '/' signifies the landing page or the root page of your website.
Last updated