When I am accessing my site using a “+” symbol in the URL, its not working. My website is hosted in IIS 7.5. It means IIS setting is not allowing “+” character in the request. Can anybody tell me what setting I need to do to rectify this Issue ?
ANSWER 1:
Please find below the solution
solution:
add the following to you web.config file:
<system.webServer>
<security>
<requestFiltering allowDoubleEscaping="true" />
</security>
</system.webServer>
Example:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<security>
<requestFiltering allowDoubleEscaping="True" />
</security>
<rewrite>
<rules>
<rule name="RewriteUserFriendlyURL1" stopProcessing="false">
<match url="\+" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="{UrlDecode:{REQUEST_URI}}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Note : Provide your comments by clicking below options! Thanks ! :)
0 comments:
கருத்துரையிடுக