I have a angular application hosted on IIS server
Under Default web site
with folder name app
let say for example my domain name is domain1.com
and have static ip for e.g 1.2.3.4
Under my dns configuration i have mapped my domain1.com with ip address 1.2.3.4 this works fine and when i browse my domain1.com it show a default IIS page which is absolutely fine!
My angular application is under Default web site
.
If i need to browse my angular
application then i need to browse to domain1.com/App
OR 1.2.3.4/App
this is also working as expected!
My question is how do i redirect a request my request of domain1.com
To domina1.com/App
Eg. if a user browse to domain1.com then it should be redirected to domain1.com/App
what i have tried till now!
1) I installed Http redirection on IIS server and added a reroute rule ex redirect domain1.com/ to domain.com/app.
but above seems to be not working because it gives a error message too many time redirect
when i searched for error it says if you have used URL REWRITE MODULE
extension it will not work
https://help.duo.com/s/article/4554?language=en_US
2) I tried to add URL redirect to under my DNS console but that does not seems to work.