关于.net 伪静态url重写
我招这网上的做法,先导入dll文件,在改配置文件,然后iis加.html的的扩展名但是iis运行网站,,地址栏没改变,,就解决,,谢谢,在线等 --------------------编程问答-------------------- 学习,期待 --------------------编程问答-------------------- 连接的地方改了没?配置贴出来看看 --------------------编程问答-------------------- <?xml version="1.0" ?><configuration>
<configSections>
<section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter" />
</configSections>
<RewriterConfig>
<Rules>
<!-- Rules for Blog Content Displayer -->
<RewriterRule>
<LookFor>~/(.[0-9]*)\.html</LookFor>
<SendTo>~/index.aspx?o=$1</SendTo>
</RewriterRule>
</Rules>
</RewriterConfig>
<appSettings>
<add key="ConnectionString" value="Provider=Sqloledb; User ID=sa; Password=mingta@#$888; Data Source=(local);"></add>
<add key="uploadPath" value="/upload/"></add>
<add key="webtitle" value=""></add>
<add key="keywords" value=""></add>
<add key="description" value=""></add>
<add key="systemfolder" value="system_dntb/"/>
<add key="skin" value="skin/xp/"/>
</appSettings>
<system.web>
<httpHandlers>
<add verb="*" path="*.aspx" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
<add verb="*" path="*.html" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
</httpHandlers>
<compilation debug="true" strict="false" explicit="true">
<assemblies>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="Accessibility, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Deployment, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Runtime.Serialization.Formatters.Soap, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
</assemblies>
</compilation>
<authentication mode="Windows"/>
<customErrors mode="Off"/>
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" cookieless="false" timeout="60"/>
</system.web>
</configuration>
--------------------编程问答-------------------- 帮顶 --------------------编程问答-------------------- 现在帮公司重做后台在搞后台静态化,但客户要求急,所以先用伪静态,,,url重写,,,能帮好搞好的谢谢啦,小弟感激不尽 --------------------编程问答-------------------- 不懂 但是可以帮你顶帖 --------------------编程问答-------------------- <configSections>
<section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter"/>
</configSections>
<RewriterConfig>
<Rules>
Rules for Product Lister
<RewriterRule>
<LookFor>~Default.html</LookFor>
<SendTo>~/Default.aspx</SendTo>
</RewriterRule>
Rules for Product Lister
</Rules>
</RewriterConfig>
<a href="Default.html">链接</a>
即可 --------------------编程问答-------------------- 7搂帅哥能解释下吗,,我先睡会2点工作,谢谢 --------------------编程问答-------------------- aspx中url重写 .
补充:.NET技术 , ASP.NET