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 ...allowDoubleEscaping gives Error 500allowDoubleEscaping gives Error 500
Previous
 
Next
New Post
10/26/2011 4:48 AM
 
Hi
I have to redirect the /about+us.aspx to /about-us.aspx, but the RewriteRule is not working for the '+' character so I allowed double escaping, and so it gives Error 500.
Any help would be very much appreciated! Thanks!!

web.config:
   <requestFiltering
                  allowDoubleEscaping="true">
   </requestFiltering>

.htaccess:
    RewriteRule ^about\+us.aspx$ /about-us.aspx [R=301,L]
 
New Post
10/26/2011 5:21 PM
 
Thats odd - i had a similar query last year where the user had a problem with pages with a space in the title that was caused by the changes in the IIS7 configuration - i gave the advice below which was followed (the opton 2 advice to allowDoubleEscaping) and it worked for the user as expected. Do you have a  more detailed copy of the error i.e. the subtype

This is an IIS configuration issue  that was introduced in IIS7. It incorporates many of the protections that were previously only added via the Urlscan filter. One of these is protection against double escaping, and a side effect of this is that + is no longer valid as part of a url. This typically manifests itself in sites that run under IIS7 and use a rewriter such as urlmaster – one of urlmasters rules is to use “+” instead of a space (the urlencoded “%20”). There are 2 options to fix this:

 

1.       Switch to using “%20” for space in urls.  The con is that the URL is less readable.

2.       Change configuration on the webservers to permit “+” in the url (MS changed this default in IIS 7).

Applications that require the use of the “+” character in the URL path can disable this validation by setting the allowDoubleEscaping attribute in the system.webServer/security/requestFiltering configuration section in the application’s web.config.  However, this may make your application more vulnerable to malicious URLs:

<system.webServer>

    <security>

            <requestFiltering allowDoubleEscaping="true" />

    </security>

</system.webServer>


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
10/27/2011 3:13 AM
 
That's exactly what I did, I followed the second option, but when I changed the web.config I got the 500 error. I'm looking for a solution how could I solve that.

500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
 
New Post
10/27/2011 7:41 AM
 
please see http://stackoverflow.com/questions/2014092/500-19-internal-server-error-requestfilteringmodule-config-error

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...allowDoubleEscaping gives Error 500allowDoubleEscaping gives Error 500


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