I have a link that redirects to "/Certification/abc123.asp". Now what I want is page should redirect to some another page that is "details.aspx?URL=/Certification/abc123.asp" but URL in address bar should appear "/Certification/abc123.asp". I have created Url rewriting rule in web.config.
Below is my code: in web.config
<rule name="Redirects to Certifications" stopProcessing="true">
<match url="(.*certifications*)"/>
<conditions>
<add input="{HTTPS}" pattern="^OFF$"/>
</conditions>
<action type="Redirect" url="http://{HTTP_HOST}/ERRoot/details.aspx?url={REQUEST_URI}" appendQueryString="true"/>
</rule>
By this I match my URL, if it contains "certifications" then it redirects to "details.aspx" page with Querystring key "url" that contains original URL. But my URL displays the page i have redirected to.
I want "/Certification/abc123.asp" to display in my address bar.
Note: There is no page like /Certification/abc123.asp. It is just a URL
Please help. Thanks in advance !!!