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 ...Sitemap page for DNN site, if request page is not or incorrect, than redirected to sitemap pageSitemap page for DNN site, if request page is not or incorrect, than redirected to sitemap page
Previous
 
Next
New Post
10/10/2008 10:14 AM
 

 

I use urlRewriting to capture basically any page error and send the requester to my error page.   At this point I am not checking for a 404 or a 403, etc. Just if an error occurs I send them to a desired page.

 

Here is what I have setup.

In the ConfigSection, in the web.config I have the following code:

In the configsection in the web.config I have this code.

<!--

1st UrlRewritingNet.UrlRewrite entry -->section name="urlrewritingnet" requirePermission ="false" type="UrlRewritingNet.Configuration.UrlRewriteSection, UrlRewritingNet.UrlRewriter" />

I then have my own section that handles 403s and errors.

  <!-- 2nd UrlRewritingNet.UrlRewrite entry -->
  <urlrewritingnet
   rewriteOnlyVirtualUrls="true"
   contextItemsPrefix="QueryString"
   defaultPage = "default.aspx"
   defaultProvider="RegEx"
   xmlns="http://www.urlrewriting.net/schemas/config/2006/07" >
    <rewrites>
  <add name="KickItHSCOM"  virtualUrl="^http\://hilbertsolutions.com/(.*).aspx"
  rewriteUrlParameter="ExcludeFromClientQueryString"
  destinationUrl="http://www.hilbertsolutions.com/$1.aspx"
  redirect="Domain"
  redirectMode="Permanent"
  ignoreCase="true" />
      <add name="KickItHSNET"  virtualUrl="^http\://hilbertsolutions.net/(.*).aspx"
  rewriteUrlParameter="ExcludeFromClientQueryString"
  destinationUrl="http://www.hilbertsolutions.com/$1.aspx"
  redirect="Domain"
  redirectMode="Permanent"
  ignoreCase="true" />
            <add name="KickItWWWHSNET"  virtualUrl="^http\://www.hilbertsolutions.net/(.*).aspx"
  rewriteUrlParameter="ExcludeFromClientQueryString"
  destinationUrl="http://www.hilbertsolutions.com/$1.aspx"
  redirect="Domain"
  redirectMode="Permanent"
  ignoreCase="true" />
      </rewrites>
  </urlrewritingnet>

Finally, I have this config section in httpmodules.

<!--

<

3rd UrlRewritingNet.UrlRewrite entry -->add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter" />

I placed the urlrewiritng.neturlrewriter.dll in my bin folder.

 

I hope that helps.   I am going off of memory here so I can't be 100% sure.

 

Stuart

<


Hilbert Solutions, LLC
Owner, Hilbert Solutions, LLC
http://www.HilbertSolutions.com
A DNN Service Provider
From Module Development to DNN Upgrades, your one stop DNN Shop
 
New Post
10/14/2008 7:49 AM
 

 Hi stuart,

can i use .htm extension using this UrlRewritingNet.UrlRewriter , because i migrating the old site to DNN site, so i want to use my old urls as its.


Velmurugan S
 
New Post
10/14/2008 8:46 AM
 

I am almost 100% sure you can.   I haven't done it, so you will need to check out the documentation, but I don't see why you wouldn't be able to.

 

Stuart


Hilbert Solutions, LLC
Owner, Hilbert Solutions, LLC
http://www.HilbertSolutions.com
A DNN Service Provider
From Module Development to DNN Upgrades, your one stop DNN Shop
 
New Post
3/3/2009 7:57 AM
 

Hi Stuart,

Thanks for ur support.

I have set the custom error page in iis. its simply solved my porblem.

 

Thanks & Regards

Velmurugan S.


Velmurugan S
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Sitemap page for DNN site, if request page is not or incorrect, than redirected to sitemap pageSitemap page for DNN site, if request page is not or incorrect, than redirected to sitemap page


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