wordpress没有做301之前Web.config代码如下:
<?xml version=”1.0″ encoding=”UTF-8″?>
<configuration>
<system.webServer>
<handlers>
<clear />
<add name=”Helicon Proxy_x64″ path=”*.rwhlp” verb=”*” type=”” modules=”IsapiModule” scriptProcessor=”C:\Program Files\Helicon\ISAPI_Rewrite3\ISAPI_RewriteProxy_x64.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”bitness64″ responseBufferLimit=”4194304″ />
<add name=”Helicon Proxy_32″ path=”*.rwhlp” verb=”*” type=”” modules=”IsapiModule” scriptProcessor=”C:\Program Files\Helicon\ISAPI_Rewrite3\ISAPI_RewriteProxy.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”bitness32″ responseBufferLimit=”4194304″ />
<add name=”ISAPI-dll” path=”*.dll” verb=”*” type=”” modules=”IsapiModule” scriptProcessor=”” resourceType=”File” requireAccess=”Execute” allowPathInfo=”true” preCondition=”” responseBufferLimit=”4194304″ />
<add name=”AXD-ISAPI-4.0_64bit” path=”*.axd” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv4.0,bitness64″ responseBufferLimit=”0″ />
<add name=”PageHandlerFactory-ISAPI-4.0_64bit” path=”*.aspx” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv4.0,bitness64″ responseBufferLimit=”0″ />
<add name=”SimpleHandlerFactory-ISAPI-4.0_64bit” path=”*.ashx” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv4.0,bitness64″ responseBufferLimit=”0″ />
<add name=”WebServiceHandlerFactory-ISAPI-4.0_64bit” path=”*.asmx” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv4.0,bitness64″ responseBufferLimit=”0″ />
<add name=”HttpRemotingHandlerFactory-rem-ISAPI-4.0_64bit” path=”*.rem” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv4.0,bitness64″ responseBufferLimit=”0″ />
<add name=”HttpRemotingHandlerFactory-soap-ISAPI-4.0_64bit” path=”*.soap” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv4.0,bitness64″ responseBufferLimit=”0″ />
<add name=”aspq-ISAPI-4.0_64bit” path=”*.aspq” verb=”*” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv4.0,bitness64″ responseBufferLimit=”0″ />
<add name=”cshtm-ISAPI-4.0_64bit” path=”*.cshtm” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv4.0,bitness64″ responseBufferLimit=”0″ />
<add name=”cshtml-ISAPI-4.0_64bit” path=”*.cshtml” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv4.0,bitness64″ responseBufferLimit=”0″ />
<add name=”vbhtm-ISAPI-4.0_64bit” path=”*.vbhtm” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv4.0,bitness64″ responseBufferLimit=”0″ />
<add name=”vbhtml-ISAPI-4.0_64bit” path=”*.vbhtml” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv4.0,bitness64″ responseBufferLimit=”0″ />
<add name=”TraceHandler-Integrated-4.0″ path=”trace.axd” verb=”GET,HEAD,POST,DEBUG” type=”System.Web.Handlers.TraceHandler” modules=”ManagedPipelineHandler” scriptProcessor=”” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”integratedMode,runtimeVersionv4.0″ responseBufferLimit=”4194304″ />
<add name=”WebAdminHandler-Integrated-4.0″ path=”WebAdmin.axd” verb=”GET,DEBUG” type=”System.Web.Handlers.WebAdminHandler” modules=”ManagedPipelineHandler” scriptProcessor=”” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”integratedMode,runtimeVersionv4.0″ responseBufferLimit=”4194304″ />
<add name=”AssemblyResourceLoader-Integrated-4.0″ path=”WebResource.axd” verb=”GET,DEBUG” type=”System.Web.Handlers.AssemblyResourceLoader” modules=”ManagedPipelineHandler” scriptProcessor=”” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”integratedMode,runtimeVersionv4.0″ responseBufferLimit=”4194304″ />
<add name=”PageHandlerFactory-Integrated-4.0″ path=”*.aspx” verb=”GET,HEAD,POST,DEBUG” type=”System.Web.UI.PageHandlerFactory” modules=”ManagedPipelineHandler” scriptProcessor=”” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”integratedMode,runtimeVersionv4.0″ responseBufferLimit=”4194304″ />
<add name=”SimpleHandlerFactory-Integrated-4.0″ path=”*.ashx” verb=”GET,HEAD,POST,DEBUG” type=”System.Web.UI.SimpleHandlerFactory” modules=”ManagedPipelineHandler” scriptProcessor=”” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”integratedMode,runtimeVersionv4.0″ responseBufferLimit=”4194304″ />
<add name=”WebServiceHandlerFactory-Integrated-4.0″ path=”*.asmx” verb=”GET,HEAD,POST,DEBUG” type=”System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″ modules=”ManagedPipelineHandler” scriptProcessor=”” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”integratedMode,runtimeVersionv4.0″ responseBufferLimit=”4194304″ />
<add name=”HttpRemotingHandlerFactory-rem-Integrated-4.0″ path=”*.rem” verb=”GET,HEAD,POST,DEBUG” type=”System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089″ modules=”ManagedPipelineHandler” scriptProcessor=”” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”integratedMode,runtimeVersionv4.0″ responseBufferLimit=”4194304″ />
<add name=”HttpRemotingHandlerFactory-soap-Integrated-4.0″ path=”*.soap” verb=”GET,HEAD,POST,DEBUG” type=”System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089″ modules=”ManagedPipelineHandler” scriptProcessor=”” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”integratedMode,runtimeVersionv4.0″ responseBufferLimit=”4194304″ />
<add name=”aspq-Integrated-4.0″ path=”*.aspq” verb=”GET,HEAD,POST,DEBUG” type=”System.Web.HttpForbiddenHandler” modules=”ManagedPipelineHandler” scriptProcessor=”” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”integratedMode,runtimeVersionv4.0″ responseBufferLimit=”4194304″ />
<add name=”cshtm-Integrated-4.0″ path=”*.cshtm” verb=”GET,HEAD,POST,DEBUG” type=”System.Web.HttpForbiddenHandler” modules=”ManagedPipelineHandler” scriptProcessor=”” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”integratedMode,runtimeVersionv4.0″ responseBufferLimit=”4194304″ />
<add name=”cshtml-Integrated-4.0″ path=”*.cshtml” verb=”GET,HEAD,POST,DEBUG” type=”System.Web.HttpForbiddenHandler” modules=”ManagedPipelineHandler” scriptProcessor=”” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”integratedMode,runtimeVersionv4.0″ responseBufferLimit=”4194304″ />
<add name=”vbhtm-Integrated-4.0″ path=”*.vbhtm” verb=”GET,HEAD,POST,DEBUG” type=”System.Web.HttpForbiddenHandler” modules=”ManagedPipelineHandler” scriptProcessor=”” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”integratedMode,runtimeVersionv4.0″ responseBufferLimit=”4194304″ />
<add name=”vbhtml-Integrated-4.0″ path=”*.vbhtml” verb=”GET,HEAD,POST,DEBUG” type=”System.Web.HttpForbiddenHandler” modules=”ManagedPipelineHandler” scriptProcessor=”” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”integratedMode,runtimeVersionv4.0″ responseBufferLimit=”4194304″ />
<add name=”ScriptHandlerFactoryAppServices-Integrated-4.0″ path=”*_AppService.axd” verb=”*” type=”System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35″ modules=”ManagedPipelineHandler” scriptProcessor=”” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”integratedMode,runtimeVersionv4.0″ responseBufferLimit=”4194304″ />
<add name=”ScriptResourceIntegrated-4.0″ path=”*ScriptResource.axd” verb=”GET,HEAD” type=”System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35″ modules=”ManagedPipelineHandler” scriptProcessor=”” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”integratedMode,runtimeVersionv4.0″ responseBufferLimit=”4194304″ />
<add name=”AXD-ISAPI-4.0_32bit” path=”*.axd” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv4.0,bitness32″ responseBufferLimit=”0″ />
<add name=”PageHandlerFactory-ISAPI-4.0_32bit” path=”*.aspx” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv4.0,bitness32″ responseBufferLimit=”0″ />
<add name=”SimpleHandlerFactory-ISAPI-4.0_32bit” path=”*.ashx” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv4.0,bitness32″ responseBufferLimit=”0″ />
<add name=”WebServiceHandlerFactory-ISAPI-4.0_32bit” path=”*.asmx” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv4.0,bitness32″ responseBufferLimit=”0″ />
<add name=”HttpRemotingHandlerFactory-rem-ISAPI-4.0_32bit” path=”*.rem” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv4.0,bitness32″ responseBufferLimit=”0″ />
<add name=”HttpRemotingHandlerFactory-soap-ISAPI-4.0_32bit” path=”*.soap” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv4.0,bitness32″ responseBufferLimit=”0″ />
<add name=”aspq-ISAPI-4.0_32bit” path=”*.aspq” verb=”*” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv4.0,bitness32″ responseBufferLimit=”0″ />
<add name=”cshtm-ISAPI-4.0_32bit” path=”*.cshtm” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv4.0,bitness32″ responseBufferLimit=”0″ />
<add name=”cshtml-ISAPI-4.0_32bit” path=”*.cshtml” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv4.0,bitness32″ responseBufferLimit=”0″ />
<add name=”vbhtm-ISAPI-4.0_32bit” path=”*.vbhtm” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv4.0,bitness32″ responseBufferLimit=”0″ />
<add name=”vbhtml-ISAPI-4.0_32bit” path=”*.vbhtml” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv4.0,bitness32″ responseBufferLimit=”0″ />
<add name=”TraceHandler-Integrated” path=”trace.axd” verb=”GET,HEAD,POST,DEBUG” type=”System.Web.Handlers.TraceHandler” modules=”ManagedPipelineHandler” scriptProcessor=”” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”integratedMode,runtimeVersionv2.0″ responseBufferLimit=”4194304″ />
<add name=”WebAdminHandler-Integrated” path=”WebAdmin.axd” verb=”GET,DEBUG” type=”System.Web.Handlers.WebAdminHandler” modules=”ManagedPipelineHandler” scriptProcessor=”” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”integratedMode,runtimeVersionv2.0″ responseBufferLimit=”4194304″ />
<add name=”AssemblyResourceLoader-Integrated” path=”WebResource.axd” verb=”GET,DEBUG” type=”System.Web.Handlers.AssemblyResourceLoader” modules=”ManagedPipelineHandler” scriptProcessor=”” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”integratedMode,runtimeVersionv2.0″ responseBufferLimit=”4194304″ />
<add name=”PageHandlerFactory-Integrated” path=”*.aspx” verb=”GET,HEAD,POST,DEBUG” type=”System.Web.UI.PageHandlerFactory” modules=”ManagedPipelineHandler” scriptProcessor=”” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”integratedMode,runtimeVersionv2.0″ responseBufferLimit=”4194304″ />
<add name=”SimpleHandlerFactory-Integrated” path=”*.ashx” verb=”GET,HEAD,POST,DEBUG” type=”System.Web.UI.SimpleHandlerFactory” modules=”ManagedPipelineHandler” scriptProcessor=”” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”integratedMode,runtimeVersionv2.0″ responseBufferLimit=”4194304″ />
<add name=”WebServiceHandlerFactory-Integrated” path=”*.asmx” verb=”GET,HEAD,POST,DEBUG” type=”System.Web.Services.Protocols.WebServiceHandlerFactory, System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” modules=”ManagedPipelineHandler” scriptProcessor=”” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”integratedMode,runtimeVersionv2.0″ responseBufferLimit=”4194304″ />
<add name=”HttpRemotingHandlerFactory-rem-Integrated” path=”*.rem” verb=”GET,HEAD,POST,DEBUG” type=”System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089″ modules=”ManagedPipelineHandler” scriptProcessor=”” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”integratedMode,runtimeVersionv2.0″ responseBufferLimit=”4194304″ />
<add name=”HttpRemotingHandlerFactory-soap-Integrated” path=”*.soap” verb=”GET,HEAD,POST,DEBUG” type=”System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089″ modules=”ManagedPipelineHandler” scriptProcessor=”” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”integratedMode,runtimeVersionv2.0″ responseBufferLimit=”4194304″ />
<add name=”AXD-ISAPI-2.0″ path=”*.axd” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv2.0,bitness32″ responseBufferLimit=”0″ />
<add name=”PageHandlerFactory-ISAPI-2.0″ path=”*.aspx” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv2.0,bitness32″ responseBufferLimit=”0″ />
<add name=”SimpleHandlerFactory-ISAPI-2.0″ path=”*.ashx” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv2.0,bitness32″ responseBufferLimit=”0″ />
<add name=”WebServiceHandlerFactory-ISAPI-2.0″ path=”*.asmx” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv2.0,bitness32″ responseBufferLimit=”0″ />
<add name=”HttpRemotingHandlerFactory-rem-ISAPI-2.0″ path=”*.rem” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv2.0,bitness32″ responseBufferLimit=”0″ />
<add name=”HttpRemotingHandlerFactory-soap-ISAPI-2.0″ path=”*.soap” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv2.0,bitness32″ responseBufferLimit=”0″ />
<add name=”AXD-ISAPI-2.0-64″ path=”*.axd” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv2.0,bitness64″ responseBufferLimit=”0″ />
<add name=”PageHandlerFactory-ISAPI-2.0-64″ path=”*.aspx” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv2.0,bitness64″ responseBufferLimit=”0″ />
<add name=”SimpleHandlerFactory-ISAPI-2.0-64″ path=”*.ashx” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv2.0,bitness64″ responseBufferLimit=”0″ />
<add name=”WebServiceHandlerFactory-ISAPI-2.0-64″ path=”*.asmx” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv2.0,bitness64″ responseBufferLimit=”0″ />
<add name=”HttpRemotingHandlerFactory-rem-ISAPI-2.0-64″ path=”*.rem” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv2.0,bitness64″ responseBufferLimit=”0″ />
<add name=”HttpRemotingHandlerFactory-soap-ISAPI-2.0-64″ path=”*.soap” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv2.0,bitness64″ responseBufferLimit=”0″ />
<add name=”CGI-exe” path=”*.exe” verb=”*” type=”” modules=”CgiModule” scriptProcessor=”” resourceType=”File” requireAccess=”Execute” allowPathInfo=”true” preCondition=”” responseBufferLimit=”4194304″ />
<add name=”SSINC-stm” path=”*.stm” verb=”GET,HEAD,POST” type=”” modules=”ServerSideIncludeModule” scriptProcessor=”” resourceType=”File” requireAccess=”Script” allowPathInfo=”false” preCondition=”” responseBufferLimit=”4194304″ />
<add name=”SSINC-shtm” path=”*.shtm” verb=”GET,HEAD,POST” type=”” modules=”ServerSideIncludeModule” scriptProcessor=”” resourceType=”File” requireAccess=”Script” allowPathInfo=”false” preCondition=”” responseBufferLimit=”4194304″ />
<add name=”SSINC-shtml” path=”*.shtml” verb=”GET,HEAD,POST” type=”” modules=”ServerSideIncludeModule” scriptProcessor=”” resourceType=”File” requireAccess=”Script” allowPathInfo=”false” preCondition=”” responseBufferLimit=”4194304″ />
<add name=”ExtensionlessUrlHandler-ISAPI-4.0_32bit” path=”*.” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv4.0,bitness32″ responseBufferLimit=”0″ />
<add name=”ExtensionlessUrlHandler-ISAPI-4.0_64bit” path=”*.” verb=”GET,HEAD,POST,DEBUG” type=”” modules=”IsapiModule” scriptProcessor=”%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”classicMode,runtimeVersionv4.0,bitness64″ responseBufferLimit=”0″ />
<add name=”ExtensionlessUrlHandler-Integrated-4.0″ path=”*.” verb=”GET,HEAD,POST,DEBUG” type=”System.Web.Handlers.TransferRequestHandler” modules=”ManagedPipelineHandler” scriptProcessor=”” resourceType=”Unspecified” requireAccess=”Script” allowPathInfo=”false” preCondition=”integratedMode,runtimeVersionv4.0″ responseBufferLimit=”0″ />
<add name=”php” path=”*.php” verb=”*” type=”” modules=”FastCgiModule” scriptProcessor=”D:\Public\Php\5.6\php-cgi.exe” resourceType=”File” requireAccess=”Script” allowPathInfo=”false” preCondition=”” responseBufferLimit=”4194304″ />
<add name=”WebDAV” path=”*” verb=”PROPFIND,PROPPATCH,MKCOL,PUT,COPY,DELETE,MOVE,LOCK,UNLOCK” type=”” modules=”WebDAVModule” scriptProcessor=”” resourceType=”Unspecified” requireAccess=”None” allowPathInfo=”false” preCondition=”” responseBufferLimit=”4194304″ />
<add name=”TRACEVerbHandler” path=”*” verb=”TRACE” type=”” modules=”ProtocolSupportModule” scriptProcessor=”” resourceType=”Unspecified” requireAccess=”None” allowPathInfo=”false” preCondition=”” responseBufferLimit=”4194304″ />
<add name=”OPTIONSVerbHandler” path=”*” verb=”OPTIONS” type=”” modules=”ProtocolSupportModule” scriptProcessor=”” resourceType=”Unspecified” requireAccess=”None” allowPathInfo=”false” preCondition=”” responseBufferLimit=”4194304″ />
<add name=”StaticFile” path=”*” verb=”*” type=”” modules=”StaticFileModule,DefaultDocumentModule,DirectoryListingModule” scriptProcessor=”” resourceType=”Either” requireAccess=”Read” allowPathInfo=”false” preCondition=”” responseBufferLimit=”4194304″ />
</handlers>
<rewrite>
<rules>
<clear />
<rule name=”WordPress: https://www.xiaoxinglai.com” enabled=”true” patternSyntax=”Wildcard” stopProcessing=”false”>
<match url=”*” ignoreCase=”true” negate=”false” />
<conditions logicalGrouping=”MatchAll” trackAllCaptures=”false”>
<add input=”{REQUEST_FILENAME}” matchType=”IsFile” pattern=”” ignoreCase=”true” negate=”true” />
<add input=”{REQUEST_FILENAME}” matchType=”IsDirectory” pattern=”” ignoreCase=”true” negate=”true” />
</conditions>
<action type=”Rewrite” url=”index.php” appendQueryString=”true” logRewrittenUrl=”false” />
</rule>
<rule name=”sudu_rewritefunc_http2https” stopProcessing=”true”>
<match url=”(.*)” negate=”false” />
<conditions>
<add input=”{REQUEST_URI}” matchType=”Pattern” pattern=”.*acme-challenge.*” negate=”true” />
<add input=”{HTTPS}” matchType=”Pattern” pattern=”^off$” />
</conditions>
<action type=”Redirect” url=”https://{HTTP_HOST}/{R:1}” redirectType=”Found” />
</rule></rules>
</rewrite>
</system.webServer>
</configuration>
wordpress做301之后Web.config代码如下:
<?xml version=”1.0″ encoding=”UTF-8″?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<clear />
<rule name=”sudu_pseudostatic_wordpress_all” enabled=”true” patternSyntax=”ECMAScript” stopProcessing=”true”>
<match url=”^(.*)$” ignoreCase=”true” negate=”false” />
<conditions logicalGrouping=”MatchAll” trackAllCaptures=”false”>
<add input=”{REQUEST_FILENAME}” matchType=”IsDirectory” pattern=”” ignoreCase=”true” negate=”true” />
<add input=”{REQUEST_FILENAME}” matchType=”IsFile” pattern=”” ignoreCase=”true” negate=”true” />
</conditions>
<action type=”Rewrite” url=”index.php” appendQueryString=”true” logRewrittenUrl=”false” />
</rule>
<rule name=”sudu_rewritefunc_http2https” stopProcessing=”true”>
<match url=”(.*)” negate=”false” />
<conditions>
<add input=”{REQUEST_URI}” matchType=”Pattern” pattern=”.*acme-challenge.*” negate=”true” />
<add input=”{HTTPS}” matchType=”Pattern” pattern=”^off$” />
</conditions>
<action type=”Redirect” url=”https://{HTTP_HOST}/{R:1}” redirectType=”Found” />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>