我正在使用 IIS 的 URL 重写,并且出于 SEO 目的,我想将所有以 / 结尾的 URL 重写为 Default.aspx。与此类似:
http://weblogs.asp.net/scottgu/archive/2010/04/20/tip-trick-fix-common-seo-problems-using-the-url-rewrite-extension.aspx< /a>
但是,我无法在任何地方找到如何进行正确的重写,因为所有文章都会做相反的事情 - 将 Default.aspx 重写为 /... 问题是这会弄乱回发 - 当您单击时您刚刚重定向到同一页面的页面上的 ASP.NET 按钮。
有什么想法吗?
I'm using IIS's URL Rewrite and want for SEO purposes I want to rewrite all URLs that end with / to Default.aspx. Similar to this:
http://weblogs.asp.net/scottgu/archive/2010/04/20/tip-trick-fix-common-seo-problems-using-the-url-rewrite-extension.aspx
However, I can't find anywhere how to do proper rewrite as all articles do reverse thing - rewrite Default.aspx to /... the problem is that this messes up Postbacks - when you click ASP.NET button on the page you just get redirected to the same page.
Any ideas?
发布评论
评论(1)
克里斯在评论中回答了问题。
Chris answered question in comments.