IIS7/iis7.5 pseudo-static plus sign and space error solution

  
                  The problem with IIS7 is that Xiaobian has encountered problems in testing a Windows 2008+iis7+php environment. I have found a lot of tutorials that I have not solved. Let's take a look at it.

There are two solutions. The one is to modify applicationhost.config in system32, and the other is to add a few lines of code in web.config, as follows.

1. Modify web.config at the root of the website

Locate the web.config file in the root of the site, find the <system.webServer> node, add <requestFiltering allowDoubleEscaping=”true&rdquo ;> .

The code looks like this:
The code is as follows

<configuration>

<system.webServer>

<security>

<requestFiltering allowDoubleEscaping="true"></requestFiltering>

</security>

</system.webServer>

</configuration> ;

2. Modify applicationhost.config

in the ApplicationHost.config file and navigate to the configuration/system.webServer/security/requestFiltering/<requestFiltering> node in the file. About 360 lines change <requestFiltering> to <requestFiltering allowDoubleEscaping="true"> .
The code is as follows

<configuration>

<system.webServer>

<security>

<requestFiltering allowDoubleEscaping="true"></requestFiltering>

</security>

</system. webServer>

</configuration>

The first two methods are the current site, the second is all sites, and the second is recommended to use the first method, which will be safe. A kiss.

Copyright © Windows knowledge All Rights Reserved