Это код перезаписчика
<rewrite url="^/home$" to="/App_Pages/default.aspx"></rewrite>
<rewrite url="^/tour$" to="/App_Pages/tour.aspx"></rewrite>
<rewrite url="^/blog(\?page=\d*)?$" to="/App_Pages/blog.aspx"></rewrite>
<rewrite url="^/blog/(\d+)/(.+)$" to="/App_Pages/blogdetails.aspx?id=$1"></rewrite>
<rewrite url="^/faqs$" to="/App_Pages/faqs.aspx"></rewrite>
<rewrite url="^/sign-in$" to="/App_Pages/sign-in.aspx"></rewrite>
<rewrite url="^/terms-and-conditions$" to="/App_Pages/terms.aspx"></rewrite>
<rewrite url="^/privacy-policy$" to="/App_Pages/privacy-policy.aspx"></rewrite>
<!-- article -->
<rewrite url="^/news/(.+)/(.+)$" to="/app_pages/news/details.aspx?id=$1"></rewrite>
<rewrite url="^/news" to="/app_pages/news/archive.aspx"></rewrite>
</rewriter>
Это код из master.cs
защищенный словарь PageData = новый словарь
{
{"/default.aspx", new PageInfo
{
colour = "blue",
url = "/default.aspx?",
overrideUrl = "/",
name= "home",
}
},
{"/tour", new PageInfo
{
colour = "orange",
url = "/tour",
name = "tour",
}
},
{"/blog", new PageInfo
{
colour = "pink",
url = "/blog",
name = "blog",
}
},
{"/faqs", new PageInfo
{
colour = "green",
url = "/faqs",
name = "faq's",
}
},
{"/subscribe", new PageInfo
{
url = "http://www.thrivesolo.com/payment50.htm",
name = "subscribe",
}
}
};