Answer:
The way to retrieve original request URL is Request.ServerVariables("HTTP_X_REWRITE_URL") . It will work on all types of URL rewriting methods like ISAPI filters, HTTP Handlers or Http Modules and on Server.Transfer. Before any URI modifications, the original Request URI is saved into the HTTP header i.e. X-Rewrite-URL. This can also be retrieved in ASP.NET by using the above method.
Asked In: Many Interviews |
Alert Moderator