因为专注
所以专业

Web.config 如何设置 IIS7,IIS8 主机实现wordpress页面 301 重定向

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: http://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>

 

温馨提示:以上只是肖兴来SEO博客wordpress整站301跳转的方法仅供参考

未经允许不得转载:肖兴来个人博客 » Web.config 如何设置 IIS7,IIS8 主机实现wordpress页面 301 重定向
分享到: 更多 (0)

评论 15

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #1

    What’s up everyone, it’s my first go to see at this site, and post is
    really fruitful in support of me, keep up posting these types of content.

    Tanisha2个月前 (08-13)回复
  2. #2

    you are really a good webmaster. The site loading pace is amazing.

    It sort of feels that you’re doing any distinctive trick.
    Furthermore, The contents are masterpiece. you have done a magnificent activity in this topic!

    báo giá thiết kế website thương mại điện tử2个月前 (08-14)回复
  3. #3

    Awesome post.

    https://carontrade.com/nha-san-xuat/kia2个月前 (08-16)回复
  4. #4

    In fact when someone doesn’t understand after that its up to other people
    that they will help, so here it happens.

    dich123.com2个月前 (08-24)回复
  5. #5

    I was able to find good info from your content.

    dich123.com2个月前 (08-25)回复
  6. #6

    You’ve made some really good points there. I checked on the web for additional information about the issue and found most individuals will go along with your views on this website.

    DỊCH TIẾNG ĐAN MẠCH2个月前 (08-26)回复
  7. #7

    Awesome blog! Is your theme custom made or did you download it from
    somewhere? A theme like yours with a few simple tweeks would really
    make my blog stand out. Please let me know where you got your design. Many thanks

    dịch tiếng nhật giá rẻ2个月前 (08-27)回复
  8. #8

    When someone writes an post he/she maintains the plan of a user in his/her mind that how a user can understand it.
    Therefore that’s why this paragraph is great. Thanks!

    http://dich123.com/Dich-Vu/DICH-THUAT-CHUYEN-NGHIEP.html2个月前 (08-27)回复
  9. #9

    Hi to all, how is everything, I think every one
    is getting more from this site, and your views are pleasant for new visitors.

    DỊCH TIẾNG LÀO2个月前 (08-27)回复
  10. #10

    Today, while I was at work, my cousin stole my iphone and tested to see if it can survive a thirty foot drop, just so she can be a youtube
    sensation. My iPad is now broken and she has
    83 views. I know this is totally off topic but I had to share
    it with someone!

    dịch tiếng trung tại Hồ chí minh2个月前 (08-28)回复
  11. #11

    I pay a visit each day a few blogs and sites to read articles or reviews, but this web
    site presents feature based writing.

    báo giá vách ngăn vệ sinh2个月前 (08-28)回复
  12. #12

    Hey there! Do you know if they make any plugins to help with
    SEO? I’m trying to get my blog to rank for some targeted keywords
    but I’m not seeing very good results. If you know of any please share.
    Appreciate it!

    http://dich123.com2个月前 (08-31)回复
  13. #13

    Do you have a spam problem on this site; I also am a
    blogger, and I was wanting to know your situation; many
    of us have created some nice procedures and we are looking to trade solutions with others, why not shoot me an email if
    interested.

    vách ngăn vệ sinh tại tphcm2个月前 (09-01)回复
  14. #14

    My brother suggested I would possibly like this web site.
    He used to be totally right. This put up truly made my day.
    You can not imagine simply how much time I had spent
    for this information! Thanks!

    vách ngăn vệ sinh giá rẻ2个月前 (09-06)回复