Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...URl rewrite in custom moduleURl rewrite in custom module
Previous
 
Next
New Post
11/21/2012 9:30 AM
 

I have module in which I am rendering some html from a database via help of

Globals.NavigateURL(PortalSettings.ActiveTab.TabID, "ViewDetail", arrOfParams); 

Now on the PageLoad event of ViewDetail I wanted to rewrite the url of the currently visible page which is looking like

http://localhost/dnntrainingportal/GettingStarted/tabid/55/ctl/ViewArticleDetail/mid/462/Aid/1/Default.aspx

into some sort of

http://localhost/dnntrainingportal/MyTest.html where I am getting MyTest.html name from database

Is it possible

I were trying like  HttpContext.Current.RewritePath("/dnntrainingportal/MyTest.html", true);

but no use

 

 
New Post
11/21/2012 9:55 AM
 
Bruce Chapman has a very nice article series about this on his blog: http://www.ifinity.com.au/Blog/EntryI...



Steven Webster
Manager, Community Platform
F5 Networks, DevCentral
 
New Post
11/21/2012 10:10 AM
 

I am not currently looking for any paid solution.Instead i wanted to find that from built in features of DNN is this possible or not?

What i simply want's to rewrite the url from the page name stored in my custom database

 
New Post
11/24/2012 6:14 AM
 

Thanks teven for referring ifinity.But even there i doesn't find any reply about if i can rewrite my url to some .html extension url where url comes from database.

Any idea what can i do?

 
New Post
11/24/2012 8:11 PM
 

dnn does not natively support this level of url remapping .... even the dotnetnuke site itself uses ifinity to handle its url rewriting.  at a minimum you need a low level http handler to be able to capture thr entered url and redirect back to the targeted web page.  you could possibly manually make changes in the siteurl.config file to handle this with some regex ... but thus would need to be handled on a case by case basis for every instance of you module.

the added complication in your case would be if you really wanted the extensin to be .html instead of say ,aspx since this may need to be handled differently depending on which versin of iis and asp.net yiur site is running.



 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...URl rewrite in custom moduleURl rewrite in custom module


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out