如何从asp .net中的URL中删除文件夹名称
问题描述:
如何在asp .net中删除URL中的文件夹名称
How to remove folder name from URL in asp .net
答
你正在寻找的短语是URL重写。 这篇MSDN文章有关于它的信息 [ ^ ] - 它专注于摆脱foo.aspx,但丑陋,尽管你可以使用相同的原则指定几乎任何东西(包括目录)。
您可能还会找到 ScottGu的博客文章有用 [ ^ ],或 Scott Hansleman's [ ^ ]也是。你可能还想考虑一个名为isapirewrite的工具。
Hi,
The phrase you are looking for is "URL Re-writing". This MSDN article has info about it[^] - it focuses on getting rid of the "foo.aspx" but of ugliness, though you can specify practically anything (including the directory) using the same principle.
You might also find ScottGu's blog entry helpful[^], or Scott Hansleman's[^] also. There is a util called "isapirewrite" that you might also want to consider.