Answered by:
"Reverse Url rewriting"

Question
-
User1959267111 posted
Hi all,
I have written an UrlRewriting HttpModule that Rewrite http//www.mySite.com/MyProductName/ProductId.aspx to http//www.mySite.com/DisplayProduct.aspx?id=ProductId
Fine !
The point is I have bunch of content "filled by user" in the "old manner" http//www.mySite.com/DisplayProduct.aspx?id=ProductId.
I've done something to redirect to the rewrited Url once the DisplayProduct page is called directly (no after rewriting) BUTI'd prefer modify sending to client the Url in the following format.
I first tought using an HttpModule and PostRequestHandlerExecute to replace the "old" Url by thye new format. But I'm affraid it's ressource consuming because I need to introduce overhead by converting the stream byte array to a string, perform the "replacement" and back again to the stream.
Is it possible to add a "render" delegate to the current Handler ?
Thanks for your advice.
Tuesday, January 6, 2009 6:49 PM
Answers
-
User-1136466523 posted
Hi,
The point is I have bunch of content "filled by user" in the "old manner" http//www.mySite.com/DisplayProduct.aspx?id=ProductId.
I've done something to redirect to the rewrited Url once the DisplayProduct page is called directly (no after rewriting) BUTI'd prefer modify sending to client the Url in the following format.
Could you please clarify what format you preferred, and i'm not sure what does "bunch of content filled by user" mean, do you mean lots of users will request for the unrewrited url directly? Also, could you please show some samples on what you want?
Thanks.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Sunday, January 11, 2009 10:42 PM
All replies
-
User1959267111 posted
Nobody has a good trick to alter the output after rendering ?
Wednesday, January 7, 2009 4:01 AM -
User-1136466523 posted
Hi,
The point is I have bunch of content "filled by user" in the "old manner" http//www.mySite.com/DisplayProduct.aspx?id=ProductId.
I've done something to redirect to the rewrited Url once the DisplayProduct page is called directly (no after rewriting) BUTI'd prefer modify sending to client the Url in the following format.
Could you please clarify what format you preferred, and i'm not sure what does "bunch of content filled by user" mean, do you mean lots of users will request for the unrewrited url directly? Also, could you please show some samples on what you want?
Thanks.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Sunday, January 11, 2009 10:42 PM -
User47344791 posted
confused[co]
Friday, January 23, 2009 7:13 AM