According to your description, do you mean that you want the url (http://test.com) to remain unchanged, while the content of the page shows the contents of other address (http://test.com/app) ?
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Member
22 Points
212 Posts
URL REWRITE
Jun 12, 2020 03:03 PM|sivapooja|LINK
|------ test
|---- app
|---- api
Member
310 Points
76 Posts
Re: URL REWRITE
Jun 12, 2020 05:56 PM|gapimex|LINK
Try:
Hope this help
Member
22 Points
212 Posts
Re: URL REWRITE
Jun 13, 2020 05:52 AM|sivapooja|LINK
Hi,
I added the provided rule in web.config of test.com
https://test.com stay on https://test.com but show default page of https://test.com not the default page of https://test.com/app
Contributor
2080 Points
664 Posts
Re: URL REWRITE
Jun 17, 2020 09:46 AM|XuDong Peng|LINK
Hi, sivapooja
According to your description, do you mean that you want the url (http://test.com) to remain unchanged, while the content of the page shows the contents of other address (http://test.com/app) ?
If so, have you tried the Server.Transfer Method? It may help you achieve your needs.
Best regards,
Xudong Peng
Member
310 Points
76 Posts
Re: URL REWRITE
Jun 18, 2020 06:55 PM|gapimex|LINK
Hi,
sivapooja, I did a test with the rule and it worked as expected. I think you'd better post the rules of your web.config to check.