<%@ page language="C#" autoeventwireup="true" inherits="admin_other_URLRewriting, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link id="CssName" rel="stylesheet" type="text/css" runat="server" />
    <script src="../../js/Common.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server" onkeydown="Save()">
    <table class="dh" cellpadding="0" cellspacing="0" border="0" align="center">
        <tr>
            <td>
                <asp:Image ID="P_Go" runat="server" ImageAlign="AbsMiddle" />
                您现在的位置：<a href="../info.aspx">后台管理</a> >> 设置URL重写规则
            </td>
        </tr>
    </table>
    <table class="border" cellspacing="1" cellpadding="0" width="99%" border="0" align="center">
        <tr>
            <td class="bqleft">
                URL重写规则：
            </td>
            <td class="bqright">
                <asp:TextBox ID="txtURLRewriting" runat="server" TextMode="MultiLine" Width="99%" Height="450px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                
            </td>
            <td class="bqright" height="50px">
                <asp:Button ID="DianCMS_Submit" runat="server" Text=" 确认(Ctrl+s) " 
                    CssClass="btn radius30 pad_0_30" onclick="DianCMS_Submit_Click" />
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                
            </td>
            <td class="bqright" height="50px">
                备注：<br />1、全站设置动态访问，且模型也是动态的情况下，URL重写生效<br />2、虚拟主机一般只支持.aspx的后缀名重写<br />3、可改变URL重写规则 如：Info_1_1.aspx也可以更改成Info/1/1.aspx等任意规则 <br />4、正则~/Info.aspx?ModelId=$1&amp;Id=$2 跟~/Info.aspx?Id=$2&amp;ModelId=$1效果一样<br />5、独立主机需要使用.html/.htm为后缀的重写，需要在IIS里将.html/.htm文件映射给 X:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll,同时去掉“确认文件是否存在”复选框
            </td>
        </tr>
        </table>
    </form>
</body>
</html>
