可以用于网址重建, 隐藏真实的网页信息。
浏览器网址 | 真实网址 |
---|---|
http://localhost/go/BoardList_1_2.aspx | http://localhost/go/Board.aspx?BoardId=1&Page=2 |
<RewriterConfig> <Rules> <RewriterRule> <LookFor>~/BoardList_([0-9]*)\.aspx</LookFor> <SendTo>~/Board.aspx?BoardID=$1</SendTo> </RewriterRule> <RewriterRule> <LookFor>~/BoardList_([0-9]*)_([0-9]*)\.aspx</LookFor> <SendTo>~/Board.aspx?BoardID=$1&Page=$2</SendTo> </RewriterRule> <RewriterRule> <LookFor>~/TopicList_([0-9]*)_([0-9]*)\.aspx</LookFor> <SendTo>~/Topic.aspx?BoardID=$1&TopicID=$2</SendTo> </RewriterRule> <RewriterRule> <LookFor>~/TopicList_([0-9]*)_([0-9]*)_([0-9]*)\.aspx</LookFor> <SendTo>~/Topic.aspx?BoardID=$1&TopicID=$2&Page=$3</SendTo> </RewriterRule> </Rules> </RewriterConfig> |