一个域名下后跟不同demo名不行吗
<rewriter>
<rewrite url="~/demo-(.+)" to="~/Content.aspx?id=$1" />
</rewriter>在content.aspx里根据id选择跳转到指定目录/页面(配置文件里还要设置demo对应真实目录)string url=System.Configuration.ConfigurationManager.AppSettings[Request.QueryString["id"]];
Response.Redirect(url); <appSettings>
<add key="news" value="demo1" />
<add key="bbs" value="demo2" />
<add key="blog" value="demo3"/>
</appSettings>
<rewriter>
<rewrite url="~/demo-(.+)" to="~/Content.aspx?id=$1" />
</rewriter>在content.aspx里根据id选择跳转到指定目录/页面(配置文件里还要设置demo对应真实目录)string url=System.Configuration.ConfigurationManager.AppSettings[Request.QueryString["id"]];
Response.Redirect(url); <appSettings>
<add key="news" value="demo1" />
<add key="bbs" value="demo2" />
<add key="blog" value="demo3"/>
</appSettings>
http://www.cnblogs.com/jzywh/archive/2006/02/20/seconddomainurlrewriter.html
http://www.cnblogs.com/jzywh/archive/2007/09/23/902905.html
http://www.cnblogs.com/jzywh/archive/2007/12/20/urlrewriteaction.html