Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Help with URL Rewriting
Previous Previous
 
Next Next
New Post 1/15/2007 2:42 PM
User is offline KP
1 posts
10th Ranked


Help with URL Rewriting 

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

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Help with URL Rewriting
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Aricie
Aricie is one of the French pioneers and experts in DotNetNuke technology.
www.aricie.com
AFUEGO!
Looking for Free DNN Hosting?
www.AFUEGO.com
Code 5 Systems, LLC.
The DNN Missing Link: A Form Module. Form Master 1.6 is an intuitive Form Creation Module at a great price. Quality Custom Module development, and DNN consulting services.
www.code5systems.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP