http://localhost:2487/400visa/nation_Germany.html 问题,我如何才能把网址中的"nation" 隐藏起来,浏览网站时不显示,
代码为: <asp:Repeater ID="Repeatergq" runat="server">
<ItemTemplate>
<li><span class="gj1"><a href='nation_<%#Eval("couEname") %>.html'><img alt='<%#Eval("couname") %>' src='uploadimage/<%#Eval("CouImage2") %>'/></a></span> <span class="gj2"><a href='nation_<%#Eval("couEname") %>.html' class="gj2"><%#Eval("couName") %></a></span></li>
</ItemTemplate>
</asp:Repeater>图片传不上去,nation.aspx是模板页面
代码为: <asp:Repeater ID="Repeatergq" runat="server">
<ItemTemplate>
<li><span class="gj1"><a href='nation_<%#Eval("couEname") %>.html'><img alt='<%#Eval("couname") %>' src='uploadimage/<%#Eval("CouImage2") %>'/></a></span> <span class="gj2"><a href='nation_<%#Eval("couEname") %>.html' class="gj2"><%#Eval("couName") %></a></span></li>
</ItemTemplate>
</asp:Repeater>图片传不上去,nation.aspx是模板页面
在web.config中
<!--注册-->
<configSections>
<section name="rewriter" requirePermission="false" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter"/>
</configSections>
<rewriter>
<!--重写规则-->
<rewrite url="^/400visa/nation_Germany.html " to="/400visa/Germany.html" processing="stop"/>
</rewriter>
<section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter"/>
</configSections>
<appSettings/>
<connectionStrings>
<add name="DB" connectionString="Data Source=127.0.0.1;Initial Catalog=walv;uid=sa;pwd=my5iucn" providerName="System.Data.SqlClient"/>
</connectionStrings>
<RewriterConfig>
<Rules>
<RewriterRule>
<LookFor>~index.html</LookFor>
<SendTo>~default.aspx</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~insure.html</LookFor>
<SendTo>~insure.aspx</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~approve.html</LookFor>
<SendTo>~approve.aspx</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~newscontent(.+?).html</LookFor>
<SendTo>~newscontent.aspx?id=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~newlist(.+?).html</LookFor>
<SendTo>~newlist.aspx?id=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~country.html</LookFor>
<SendTo>~country.aspx</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~nation(.+?).html</LookFor>
<SendTo>~nation.aspx?id=$1</SendTo>
</RewriterRule>
这是我重写的规则
就是只在站内迁移。
http://bbs.csdn.net/
类似这种。你点任何一个板块都是在同一个网址。但是内容却不一样。