How do I get started on URL Rewrite? match abc.aspx then rewrite to xyz.aspx

Good day,

I am using IIS 10.0 and Microsoft Visual Studio 2010, ASP.Net

apparently this doesn't do as I expected it to do. I tried redirect but it gives me an HTTP 404 error, because there is a none existing xyz.aspx on the iis server or resource.

But I just really want to rewrite the abc.aspx to xyz.aspx without really redirecting, is this possible? I tried running this and it just stays still on abc.aspx, please help, thank you.

<system.webServer>
<rewrite>
<rules>
<rule name="abcRewrite" stopProcessing="true">
<match url="abc.aspx" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" />
</conditions>
<action type="Rewrite" url="xyz.aspx" />
</rule>
</rules>
</rewrite>
</system.webServer>
Raniel Christian QuiranteSoftware EngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MishaProgrammerCommented:
Do you read this article about Rewrite in asp net?
https://msdn.microsoft.com/en-us/library/ms972974.aspx
1
MrunalCommented:
Above approach is mainly used for executing different extensions of file or pages.

Please refer to below url:

https://www.simplethread.com/exploring-systemwebrouting/

This is better approach.
2

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MishaProgrammerCommented:
There is no activity from author.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.