日期:2014-05-18  浏览次数:20458 次

实现伪静态后站内链接的问题
根据网上教程,web.cinfig配置更改如下:

<configSections>
                    <section   name= "RewriterConfig "   type= "URLRewriter.Config.RewriterConfigSerializerSectionHandler,   URLRewriter "   />
          </configSections>
 
 
  <connectionStrings>
    <add   name= "123Conn "   connectionString= "Provider=Microsoft.Jet.OLEDB.4.0;Data   Source=|DataDirectory|\\123.mdb "
      providerName= "System.Data.OleDb "   />
  </connectionStrings>
<system.web>

<RewriterConfig>
                    <Rules>
                            <RewriterRule>
                                      <LookFor> ~/xgmv(.[0-9]*)\.aspx </LookFor>
                                      <SendTo> ~/xgmv.aspx?id=$1 </SendTo>
                            </RewriterRule>
                            <RewriterRule>
                                      <LookFor> ~/wyzp(.[0-9]*)\.aspx </LookFor>
                                      <SendTo> ~/wyzp.aspx?id=$1 </SendTo>
                            </RewriterRule>
                            <RewriterRule>
                                      <LookFor> ~/zfmt(.[0-9]*)\.aspx </LookFor>
                                      <SendTo> ~/zfmt.aspx?id=$1 </SendTo>
                            </RewriterRule>
                            <RewriterRule>
                                      <LookFor> ~/zgtp(.[0-9]*)\.aspx </LookFor>
                                      <SendTo> ~/zgtp.aspx?id=$1 </SendTo>
                            </RewriterRule>
                    </Rules>
          </RewriterConfig>