求助!url重写!!!
ldqlp 2012-06-06 09:07:53 ID UserName Path
1 test t1
2 abc t4
3 nets t100
用户表
用户表中username 为二级域名的
test.myweb.com
abc.myweb.com
nets.myweb.com
path是模板目录,所有的模板都在同一个目录下 temp
temp 父目录
下面包括 t1----t100 还有一些配置文件还aspx文件
现在我通过username在数据库中找到对应的path 并直接调用 t1下面的首页和其它页面显示出来
效果
test.myweb.com/index.aspx
test.myweb.com/about.aspx 等
而url中不在显示t1这些模板文件路径。
<CustomConfiguration>
<urls>
<add virtualUrl="~/index.aspx" destinationUrl="~/t1/index.aspx" />
</urls>
</CustomConfiguration>
请问我应该怎么做??
不知道大家明白我的意思不?