301 redirects on a fixed URL with one to one mapping

What is the recommendation in DX for setting up 1 to 1 redirects like 301, 302 on specific URL for the application side?

Since there is no HTTP server we are facing challenges in setting redirects.

Hi Priyank,
can you please provide us an example to get a better understanding? You need to know that DX supports different ways for redirecting requests. For example:

How to redirect a friendly url to the login page when users need to login first?

or after a login which is described at URL:
Changing the login or redirect page used for servlet rendering

You can also specify redirects in authentication filters as described at page:
Sample to create a Custom Login/Logout Filter in HCL Portal

and...

Configuring authentication filters

So it really depends on your exact needs.
Thanks for the clarification
with best regards
Thorsten