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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Redirect subfolder based on urlRedirect subfolder based on url
Previous
 
Next
New Post
9/18/2006 9:02 AM
 

The challenge with using the DNN redirector is since it is an ASP.NET HTTP Module it can only redirect requests that IIS has mapped to ASP.NET. This requires that the request either end in a file extension mapped it ASP.NET (aspx, ashx, etc.) or it requires that IIS be configured to map ALL requests to ASP.NET.

If you want to do redirects that mimic a folder heriarchy, like http:/www.sitename.com/news (with no file extension), my understanding is, you either have to

1. Use an ISAPI filter

2. Use Custom error pages (as described in this thread)

3. Map all requests to ASP.NET and use the DNN UrlRewrite Http Module or equivelent.

 

ISAPI filters require a level of complexity and risk I'd like to avoid. Mapping all requests to ASP.NET may cause perofrmance issues so I've tried to avoid it. Presently, we leverage UrlRewrite for short cut urls, but this requres that the request end in a mapped file extension - http://www.wildvoice.com/people/wildvoice.aspx. It is kind of ugly that it requres the extension, so Custom error pages seems like a good compromise approach. http://support.microsoft.com/kb/814869/ seems like a good place to find out more info.

 

 


WildVoice.com Michael Levy - Are you ready to be heard? WildVoice.com
 
New Post
9/18/2006 10:16 AM
 
here's another resource

http://www.aspnetresources.com/articles/CustomErrorPages.aspx

hi Michael,
i sent an email to your hotmail.

chat soon.

 
New Post
9/18/2006 10:54 AM
 

 

Oh, right.  I should have looked closer at the original post. You do need an extension mapped to ASP.net before the internal DNN rewrite will work.

 

If you want to do it just based on folders, then I would recommend http://www.isapirewrite.com/, it's an ISAPI filter that does it all. 

 


DotNetNuke Modules from Snapsis.com
 
New Post
9/18/2006 10:59 AM
 

 

Also, if you don't mind creating these folders manually, you can create a real physical (or virtual) folder and put a default document in it (e.g. default.aspx), and when the folder is used alone in the Url, it will get handed over to ASP.Net, which will allow you to use DNN's Rewriter.


DotNetNuke Modules from Snapsis.com
 
New Post
9/18/2006 11:39 AM
 
Great resources. Thanks John and Ty. Cute trick with the physical folder too.

WildVoice.com Michael Levy - Are you ready to be heard? WildVoice.com
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Redirect subfolder based on urlRedirect subfolder based on url


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