Hi All:
I am working on a DNN site built with 2.1.2
I need to write a URL rewriting module to make it more google and user friendly.
Cant use HRef Exchanger it appears and cant upgrade to newer versions.
I have gone the route of writing a HTTP Module that uses Context.RewritePath after examing the incoming url and reading rules from web.config.
We have lots of urls that need to of the form
http://mywebsitename.com/Categorx/sub_cat/Name_of_prod/item_id.aspx
I am able to catch an incoming URL that is of the above form and do a rewrite on it to the appropriate item from the database.
However, the resulting URL is the true URL displayed. So that users are not confused, I want to preserve the incoming URL.
I understand that you solve this by using an actionless form and there are at least two ways to do this. (a) use a piece of javascript that sets the action to "" or (b) create a new class that is subclassed from System.Web.UI.HtmlControls.Htmlform and overrides the rederAttributes method to set the action to be nothing.
(a)Can someone give some pointers on how to use the latter method. If there is a living example that would help a lot.
(b) I have also read that it has some debilitating cons with this approach. What are they and how do I work around them?
thanks in advance!
KP