how to rewrite a path
-
Hi all, Hai in project how to rewrite the URl.ex http://localhost/wild/events.aspx?Action=Event to http://localhost/wild/events.aspx/Event like this
-
Hi all, Hai in project how to rewrite the URl.ex http://localhost/wild/events.aspx?Action=Event to http://localhost/wild/events.aspx/Event like this
Rmesh wrote:
Hai in project how to rewrite the URl.ex http://localhost/wild/events.aspx?Action=Event to http://localhost/wild/events.aspx/Event
Write an
HTTPModule
that checks all incoming requests, and if it matches to your criteria, useHTTPContext.RewritePath()
method to rewrite path. But I don't think that you can make URL's ex tensionless like what you need.
-
Hi all, Hai in project how to rewrite the URl.ex http://localhost/wild/events.aspx?Action=Event to http://localhost/wild/events.aspx/Event like this
-
Rmesh wrote:
Hai in project how to rewrite the URl.ex http://localhost/wild/events.aspx?Action=Event to http://localhost/wild/events.aspx/Event
Write an
HTTPModule
that checks all incoming requests, and if it matches to your criteria, useHTTPContext.RewritePath()
method to rewrite path. But I don't think that you can make URL's ex tensionless like what you need.
-
Rmesh wrote:
I have tried that one but the url was not rewritten
Could you explain how you did that ? How you came to know that URL was not rewritten ?