欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Web.config(應(yīng)用程序的配置信息)總結(jié)

 更新時間:2013年01月24日 08:57:08   作者:  
Web.config文件是一個XML文本文件,它用來儲存 ASP.NET Web 應(yīng)用程序的配置信息(如最常用的設(shè)置ASP.NET Web 應(yīng)用程序的身份驗(yàn)證方式),它可以出現(xiàn)在應(yīng)用程序的每一個目錄中,接下來詳細(xì)介紹一下配置情況,感興趣的朋友可以了解下
Web.config文件是一個XML文本文件,它用來儲存 ASP.NET Web 應(yīng)用程序的配置信息(如最常用的設(shè)置ASP.NET Web 應(yīng)用程序的身份驗(yàn)證方式),它可以出現(xiàn)在應(yīng)用程序的每一個目錄中。當(dāng)你通過.NET新建一個Web應(yīng)用程序后,默認(rèn)情況下會在根目錄自動創(chuàng)建一個默認(rèn)的Web.config文件,包括默認(rèn)的配置設(shè)置,所有的子目錄都繼承它的配置設(shè)置。如果你想修改子目錄的配置設(shè)置,你可以在該子目錄下新建一個Web.config文件。它可以提供除從父目錄繼承的配置信息以外的配置信息,也可以重寫或修改父目錄中定義的設(shè)置。

在運(yùn)行時對Web.config文件的修改不需要重啟服務(wù)就可以生效(注: 節(jié)例外)。當(dāng)然Web.config文件是可以擴(kuò)展的。你可以自定義新配置參數(shù)并編寫配置節(jié)處理程序以對它們進(jìn)行處理。
復(fù)制代碼 代碼如下:

<?xml version="1.0"?>
<configuration>
<!--指定配置節(jié)和命名空間聲明。clear:移除對繼承的節(jié)和節(jié)組的所有引用,只允許由當(dāng)前 section 和 sectionGroup 元素添加的節(jié)和節(jié)組。remove:移除對繼承的節(jié)和節(jié)組的引用。section:定義配置節(jié)處理程序與配置元素之間的關(guān)聯(lián)。sectionGroup:定義配置節(jié)處理程序與配置節(jié)之間的關(guān)聯(lián)。-->
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
<section name="rewriter" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter"/>
</configSections>
<!--appSettings是應(yīng)用程序設(shè)置,可以定義應(yīng)用程序的全局常量設(shè)置等信息。-->
<appSettings>
<add key="ErrPage" value="http://www.cnblogs.com"/>
</appSettings>
<!--連接字符串設(shè)置-->
<connectionStrings>
<add name="sqlConnectionString" connectionString=""/>
</connectionStrings>
<!--指定應(yīng)用子配置設(shè)置的資源,并鎖定配置設(shè)置,以防止它們被子配置文件重寫。path指定應(yīng)用包含的配置設(shè)置的資源。allowOverride是否允許配置文件的重寫,提高配置文件的安全性。-->
<location path="Default.aspx" allowOverride="false">
<!--控制asp.net運(yùn)行時的行為-->
<system.web>
<!--identity控制web應(yīng)用程序的身份驗(yàn)證標(biāo)識.-->
<identity impersonate="false" />
<!--標(biāo)識特定于頁的配置設(shè)置(如是否啟用會話狀態(tài)、視圖狀態(tài),是否檢測用戶的輸入等)。<pages>可以在計(jì)算機(jī)、站點(diǎn)、應(yīng)用程序和子目錄級別聲明。
masterPageFile:默認(rèn)主頁為Index。
theme:主題是Default。
buffer:指定 URL 資源是否使用響應(yīng)緩沖。默認(rèn)值為 True。
enableViewStateMac:指定從客戶端回發(fā)頁時,ASP.NET 是否應(yīng)該對頁的視圖狀態(tài)運(yùn)行消息身份驗(yàn)證代碼 (MAC)。如果為 True,將檢查加密的視圖狀態(tài),以驗(yàn)證視圖狀態(tài)是否已在客戶端被篡改。默認(rèn)值為 True。
validateRequest:指示 ASP.NET 在從瀏覽器輸入的所有內(nèi)容中檢查是否存在潛在的危險(xiǎn)數(shù)據(jù)。如果是 True,則通過將所有輸入數(shù)據(jù)與一個潛在危險(xiǎn)值列表進(jìn)行比較來執(zhí)行請求驗(yàn)證。如果發(fā)生匹配,ASP.NET 將引發(fā) HttpRequestValidationException 異常。默認(rèn)值為 True。
enableViewState:指定視圖狀態(tài)是否啟用并在多個頁請求之間保持。默認(rèn)值為 True。-->
<pages masterPageFile="Index" theme="Default" buffer="true" enableViewStateMac="true" validateRequest="false" enableViewState="false">
<!--controls 元素定義標(biāo)記前綴所在的 register 指令和命名空間的集合-->
<controls></controls>
<!--將在程序集預(yù)編譯期間使用的導(dǎo)入指令的集合-->
<namespaces></namespaces>
</pages>
<!--默認(rèn)錯誤頁設(shè)置。
mode:具有On,Off,RemoteOnly 3種狀態(tài)。On表示始終顯示自定義的信息; Off表示始終顯示詳細(xì)的asp.net錯誤信息; RemoteOnly表示只對不在本地Web服務(wù)器上運(yùn)行的用戶顯示自定義信息。
defaultRedirect:用于出現(xiàn)錯誤時重定向的URL地址。-->
<customErrors defaultRedirect="Err.html" mode="RemoteOnly">
<!--特殊代碼編號的錯誤從定向文件-->
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
<!--配置調(diào)試和跟蹤。
enabled:是否為應(yīng)用程序啟用跟蹤。默認(rèn)值為 false。
localOnly:指定跟蹤查看器 (Trace.axd) 是否只用于主機(jī) Web 服務(wù)器。如果是 false,則跟蹤查看器可用于任何計(jì)算機(jī)。默認(rèn)情況下,Trace.axd 查看器被添加到 httpHandlers 元素。默認(rèn)值為 true。
pageOutput:指定在每一頁的結(jié)尾是否呈現(xiàn)跟蹤輸出。如果是 false,則只能通過跟蹤實(shí)用工具訪問跟蹤輸出。默認(rèn)值為 false。
requestLimit:指定在服務(wù)器上存儲的跟蹤請求的數(shù)目。如果達(dá)到限制,并且 mostRecent 特性為 false,將自動禁用跟蹤。最大請求限制為 10,000。如果指定了大于 10,000 的值,ASP.NET 會在不給出任何提示的情況下將它向下舍入到 10,000。默認(rèn)值為 10。
traceMode:指定顯示跟蹤信息的順序。traceMode 特性可以為下列可能值之一。
值 說明
SortByCategory 指定根據(jù)用戶定義的類別按字母順序顯示跟蹤信息。 SortByTime 指定以處理跟蹤信息的順序來顯示跟蹤信息。
默認(rèn)值為 SortByTime。-->
<trace enabled="true" localOnly="false" pageOutput="true" requestLimit="15" traceMode="SortByCategory"/>
<!-- 設(shè)置 compilation debug="true" 將調(diào)試符號插入已編譯的頁面中。但由于這會影響性能,因此只在開發(fā)過程中將此值設(shè)置為 true。設(shè)置默認(rèn)的開發(fā)語言C#。batch是否支持批處理-->
<compilation debug="true" defaultLanguage="c#" batch="false">
<assemblies>
<!--加的程序集引用,每添加一個程序集,就表示你的應(yīng)用程序已經(jīng)依賴了一個程序集,你就可以在你的應(yīng)用程序中使用了-->
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
</assemblies>
<!--定義用于編譯自定義資源文件的生成提供程序的集合。-->
<buildProviders>
<add extension=".aspx" type="System.Web.Compilation.PageBuildProvider"/>
<add extension=".ascx" type="System.Web.Compilation.UserControlBuildProvider"/>
<add extension=".master" type="System.Web.Compilation.MasterPageBuildProvider"/>
<add extension=".asmx" type="System.Web.Compilation.WebServiceBuildProvider"/>
<add extension=".ashx" type="System.Web.Compilation.WebHandlerBuildProvider"/>
<add extension=".soap" type="System.Web.Compilation.WebServiceBuildProvider"/>
<add extension=".resx" type="System.Web.Compilation.ResXBuildProvider"/>
<add extension=".resources" type="System.Web.Compilation.ResourcesBuildProvider"/>
<add extension=".wsdl" type="System.Web.Compilation.WsdlBuildProvider"/>
<add extension=".xsd" type="System.Web.Compilation.XsdBuildProvider"/>
<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</buildProviders>
</compilation>
<!--通過 <authentication> 節(jié)可以配置 ASP.NET 使用的 安全身份驗(yàn)證模式,以標(biāo)識傳入的用戶。Windows: 使用IIS驗(yàn)證方式。Forms: 使用基于窗體的驗(yàn)證方式。Passport: 采用Passport cookie驗(yàn)證模式。None: 不采用任何驗(yàn)證方式。-->
<authentication mode="Forms">
<!--Name: 指定完成身份驗(yàn)證的Http cookie的名稱。
LoginUrl: 如果未通過驗(yàn)證或超時后重定向的頁面URL,一般為登錄頁面,讓用戶重新登錄。
Protection: 指定 cookie數(shù)據(jù)的保護(hù)方式。可設(shè)置為:All表示加密數(shù)據(jù),并進(jìn)行有效性驗(yàn)證兩種方式,None表示不保護(hù)Cookie,Encryption表示對Cookie內(nèi)容進(jìn)行加密,validation表示對Cookie內(nèi)容進(jìn)行有效性驗(yàn)證。
TimeOut: 指定Cookie的失效時間。超時后要重新登錄。-->
<forms name=".ASPXUSERDEMO" loginUrl="Login.aspx" protection="All" timeout="30"/>
</authentication>
<!--控制對 URL 資源的客戶端訪問(如允許匿名用戶訪問)。此元素可以在任何級別(計(jì)算機(jī)、站點(diǎn)、應(yīng)用程序、子目錄或頁)上聲明。必需與<authentication> 節(jié)配合使用。此處的意思是對匿名用戶不進(jìn)行身份驗(yàn)證。拒絕用戶weipeng-->
<authorization>
<allow users="*"/>
<deny users="weipeng"/>
<allow users="aa" roles="aa" />
</authorization>
<!--站點(diǎn)全球化設(shè)置,requestEncoding: 它用來檢查每一個發(fā)來請求的編碼。responseEncoding: 用于檢查發(fā)回的響應(yīng)內(nèi)容編碼.fileEncoding:用于檢查aspx,asax等文件解析的默認(rèn)編碼,默認(rèn)的編碼是utf-8-->
<globalization requestEncoding="gb2312" responseEncoding="gb2312" fileEncoding="gb2312" />
<!--會話狀態(tài)設(shè)置。
mode: 分為off,Inproc,StateServer,SqlServer幾種狀態(tài)。mode ="InProc" 存儲在進(jìn)程中,特點(diǎn):具有最佳的性能,速度最快,但不能跨多臺服務(wù)器存儲共享。mode = "StateServer" 存儲在狀態(tài)服務(wù)器中特點(diǎn):當(dāng)需要跨服務(wù)器維護(hù)用戶會話信息時,使用此方法。但是信息存儲在狀態(tài)服務(wù)器上,一旦狀態(tài)服務(wù)器出現(xiàn)故障,信息將丟失。mode="SqlServer" 存儲在sql server中特點(diǎn):工作負(fù)載會變大,但信息不會丟失。
stateConnectionString:指定asp.net應(yīng)用程序存儲遠(yuǎn)程會話狀態(tài)的服務(wù)器名,默認(rèn)為本機(jī)。
sqlConnectionString:當(dāng)用會話狀態(tài)數(shù)據(jù)庫時,在這里設(shè)置連接字符串。
Cookieless:設(shè)置為flase時,表示使用cookie會話狀態(tài)來標(biāo)識客戶。
timeout:表示會話超時時間。-->
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20"></sessionState>
<!--為 ASP.NET 應(yīng)用程序配置頁的視圖狀態(tài)設(shè)置。設(shè)置要存儲在頁歷史記錄中的項(xiàng)數(shù)。-->
<sessionPageState historySize="9"/>
<!--配置asp.net http運(yùn)行庫的設(shè)置。可以在計(jì)算機(jī),站點(diǎn),應(yīng)用程序和子目錄級別聲明允許最多的請求個數(shù)100,最長允許執(zhí)行請求時間為80秒,控制用戶上傳文件的大小,默認(rèn)是4M。useFullyQualifiedRedirectUrl客戶端重定向不需要被自動轉(zhuǎn)換為完全限定格式。-->
<httpRuntime appRequestQueueLimit="100" executionTimeout="80" maxRequestLength="40960" useFullyQualifiedRedirectUrl="false"/>
<!--httpModules在一個應(yīng)用程序內(nèi)配置 HTTP 模塊。-->
<httpModules>
<add name="OutputCache" type="System.Web.Caching.OutputCacheModule" />
<add name="Session" type="System.Web.SessionState.SessionStateModule" />
<add name="WindowsAuthentication" type="System.Web.Security.WindowsAuthenticationModule" />
<add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule" />
<add name="PassportAuthentication" type="System.Web.Security.PassportAuthenticationModule" />
<add name="RoleManager" type="System.Web.Security.RoleManagerModule" />
<add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule" />
<add name="FileAuthorization" type="System.Web.Security.FileAuthorizationModule" />
<add name="AnonymousIdentification" type="System.Web.Security.AnonymousIdentificationModule" />
<!--自定義的URL重寫,type基本上就是dll名-->
<add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter" />
<add name="Profile" type="System.Web.Profile.ProfileModule" />
</httpModules>
<!--httpHandlers用于根據(jù)用戶請求的URL和HTTP謂詞將用戶的請求交給相應(yīng)的處理程序。可以在配置級別的任何層次配置此節(jié)點(diǎn),也就是說可以針對某個特定目錄下指定的特殊文件進(jìn)行特殊處理。
add:指定映射到處理程序的謂詞/路徑。
clear:移除當(dāng)前已配置或已繼承的所有處理程序映射。
remove:移除映射到處理程序的謂詞/路徑。remove 指令必須與前一個 add 指令的謂詞/路徑組合完全匹配。該指令不支持通配符。-->
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
<add verb="POST,GET" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro.2"/>
</httpHandlers>
<!--為 Web 應(yīng)用程序使用的 Cookie 配置屬性。
domain:設(shè)置 Cookie 域名。
httpOnlyCookies:在 Internet Explorer 6 SP1 中啟用 HttpOnlyCookies Cookie 的輸出。默認(rèn)值為 false。
requireSSL:獲取一個指示是否需要安全套接字層 (SSL) 通信的值.-->
<httpCookies httpOnlyCookies="false" requireSSL="false"/>
<!--控制 ASP.NET Web 服務(wù)及其客戶端的行為。
protocols:指定傳輸協(xié)議,ASP.NET 可使用這些傳輸協(xié)議來解密 HTTP-->
<webServices>
<protocols>
<add/>
</protocols>
</webServices>
<!--為 Web 應(yīng)用程序配置緩存設(shè)置。
cache:定義全局應(yīng)用程序緩存設(shè)置。
outputCache:指定應(yīng)用程序范圍的輸出緩存設(shè)置。
outputCacheSettings:指定可以應(yīng)用于應(yīng)用程序中頁的輸出緩存設(shè)置。
sqlCacheDependency:為 ASP.NET 應(yīng)用程序配置 SQL 緩存依賴項(xiàng)。-->
<caching>
<cache disableMemoryCollection = "false" disableExpiration = "false" privateBytesLimit = "0" percentagePhysicalMemoryUsedLimit = "90" privateBytesPollTime = "00:02:00"/>
<!--設(shè)計(jì)需要以這種方式緩存的頁時,您需要向該頁添加以下指令:<%@ OutputCache CacheProfile="ServerOnly" %>-->
<outputCacheSettings>
<outputCacheProfiles>
<add name="ServerOnly" duration="60" varyByCustom="browser" location="Server" />
</outputCacheProfiles>
</outputCacheSettings>
</caching>
</system.web>
</location>
<!--網(wǎng)絡(luò)設(shè)置。authenticationModules:指定用于對 Internet 請求進(jìn)行身份驗(yàn)證的模塊。connectionManagement:指定與 Internet 宿主的連接的最大數(shù)目。defaultProxy:配置超文本傳輸協(xié)議 (HTTP) 代理服務(wù)器。mailSettings:配置簡單郵件傳輸協(xié)議 (SMTP) 郵件發(fā)送選項(xiàng)。requestCaching:控制網(wǎng)絡(luò)請求的緩存機(jī)制。settings:配置 System.Net 的基本網(wǎng)絡(luò)選項(xiàng)。-->
<system.net>
<!--配置SMTP電子郵件設(shè)置-->
<mailSettings>
<smtp from="sy">
<network host="Gao" password="" userName="" />
</smtp>
</mailSettings>
<!--禁用所有緩存-->
<requestCaching disableAllCaching="true"></requestCaching>
<!--指定代理地址,并對本地訪問和 contoso.com 跳過代理。-->
<defaultProxy>
<proxy usesystemdefault="True" proxyaddress="http://192.168.1.10:3128" bypassonlocal="True"/>
<bypasslist>
<add address="" />
</bypasslist>
</defaultProxy>
</system.net>
<!--該節(jié)替換在 httpHandlers 和 httpModules 節(jié)中添加的與 AJAX 相關(guān)的 HTTP 處理程序和模塊。該節(jié)使 IIS 7.0 在集成模式下運(yùn)行時可使用這些處理程序和模塊。在iis7.0 下運(yùn)行 ASP.NET AJAX 需要 system.webServer節(jié)。對早期版本的 IIS 來說則不需要此節(jié)。 -->
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</handlers>
</system.webServer>
<!--ASP.NET AJAX 中配置 ASP.NET 服務(wù)-->
<system.web.extensions>
<!--配置 JSON 序列化-->
<scripting>
<webServices>
<jsonSerialization maxJsonLength="5000"/>
</webServices>
</scripting>
</system.web.extensions>
<!--對WCF的相關(guān)配置-->
<system.serviceModel>
<services>
<service name="WCFStudent.WCFStudentText" behaviorConfiguration="ServiceBehavior">
<!-- Service Endpoints -->
<endpoint address="" binding="wsHttpBinding" contract="WCFStudent.IStuServiceContract">
<!-- 部署時,應(yīng)刪除或替換下列標(biāo)識元素,以反映在其下運(yùn)行部署服務(wù)的標(biāo)識。刪除之后,WCF 將自動推導(dǎo)相應(yīng)標(biāo)識。-->
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="ServiceBehavior">
<!-- 為避免泄漏元數(shù)據(jù)信息,請?jiān)诓渴鹎皩⒁韵轮翟O(shè)置為 false 并刪除上面的元數(shù)據(jù)終結(jié)點(diǎn) -->
<serviceMetadata httpGetEnabled="true"/>
<!-- 要接收故障異常詳細(xì)信息以進(jìn)行調(diào)試,請將以下值設(shè)置為 true。在部署前設(shè)置為 false 以避免泄漏異常信息-->
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
<!--URL重定向-->
<rewriter>
<rewrite url="~/user/u(.+).aspx" to="~/user/index.aspx?r=$1" />
<rewrite url="~/ask/q(.+).aspx" to="~/home/ask/content.aspx?id=$1" />
<rewrite url="~/blog/b(.+).aspx" to="~/home/blog/article.aspx?r=$1" />
<rewrite url="~/news/n(.+).aspx" to="~/home/news/content.aspx?nid=$1" />
<rewrite url="~/default.aspx" to="~/home/ram/net.aspx" />
</rewriter>
</configuration>

相關(guān)文章

最新評論