Here is a case where we'd want to use URL rewriting.
这就是我们要使用url重写的一个例子。
Figures 5, 6, and 7 show the URL rewriting in action.
图5、6和7显示了操作中的url重写。
URL rewriting: This is a popular alternative to cookies.
URL重写:这是cookie一个很流行的备选方案。
So, when should URL rewriting be performed in an HTTP module?
那么,应该何时在HTTP模块中执行URL重写?
Performing Simple URL Rewriting with the URL Rewriting engine.
使用url重写引擎执行简单的url重写。
Specifying Configuration Information for the URL Rewriting engine.
为url重写引擎指定配置信息。
Over the next section we'll look at building a reusable URL rewriting engine.
在下一部分中,我们将对构建可重用的URL重写引擎进行讨论。
URL rewriting can also be performed by an HTTP handler or HTTP handler factory.
也可以由HTTP处理程序或 HTTP 处理程序工厂执行URL重写。
URL rewriting can be easily configured to use an HTTP module or an HTTP handler.
可以轻松地将URl重写配置为使用HTTP模块或HTTP处理程序。
We'll also see how URL rewriting can be used to create an intelligent 404 error.
我们还将了解如何将URl重写用于创建智能404错误。
We can accomplish this with the following URL rewriting rule in the Web.config file
我们可以在Web.config 文件中使用以下URL重写规则来实现此功能。
The remaining three sections of this article examine real-world USES of URL rewriting.
本文剩余的三个部分将对url重写的实际使用情况进行介绍。
The entire code for the URL rewriting engine is available for download with this article.
url重写引擎的整个代码可随本文下载。
Under regular expression URL rewriting, every rewritten URI has at least one denotative twin.
通过使用正则表达式url重写,每个重写的URI至少有一个对应的表示性(denotative)形式。
Depending on your setup, you might have URL rewriting, dynamic generation by pathname, and so on.
根据设置的不同,可能会有URL重写、依路径名动态生成等手段。
In this article we'll look at creating a URL rewriting HTTP handler factory for ASP.NET Web pages.
在本文中,我们将对如何为asp.net网页创建url重写HTTP处理程序工厂进行讨论。
URL rewriting is used to manipulate URL paths before the request is handled by the Web server.
URL重写通常被用于在Web服务器处理请求之前操作url路径。
First we'll look at how to use the URL rewriting engine and look at a simple URL rewriting example.
首先,我们将讨论如何使用url重写引擎,并介绍一个简单的url重写示例。
To implement URL rewriting in ASP.NET, then, we need to create an HTTP module or HTTP handler that.
要在ASP.NET中实现url重写,需要创建HTTP模块或HTTP处理程序,以便完成以下操作。
To fix these subtleties, you might decide to perform the URL rewriting in the AuthorizeRequest event.
要解决这些细微问题,您可以决定在AuthorizeRequest事件中执行url重写。
Apache mod_rewrite (or similar URL rewriting support if you are using an alternative server type).
Apache mod_rewrite(如果你使用的是其他类型的服务器,也可以选择类似的支持URL重写的组件)。
Like virtually all MVC frameworks, Microsoft finally supports URL rewriting via the ASP.NET Routing Engine.
象所有的MVC框架一样,微软最终通过ASP.NET路径选择引擎(Routing Engine)支持URL重写。
The ASP.NET page developer utilizing the URL rewriting engine can specify the rewriting rules in the Web.config file.
使用url重写引擎的ASP.NET页面开发人员可以在Web. config文件中指定重写规则。
To understand why these extra steps need to be performed, recall that the URL rewriting engine is at the ASP.NET level.
要理解需要执行这些额外步骤的原因,可以参考前面的内容,即 URL重写引擎位于 ASP.NET 级别上。
To see how HTTP handlers can be used to perform URL rewriting, consult the code available for download with this article.
要查看如何使用HTTP处理程序来执行url重写,请参考可随本文下载的代码。
URL rewriting is the process of intercepting an incoming Web request and redirecting the request to a different resource.
url重写是截取传入Web请求并自动将请求重定向到其他资源的过程。
URL rewriting is the process of intercepting an incoming Web request and automatically redirecting it to a different URL.
url重写是截取传入Web请求并自动将请求重定向到其他URL的过程。
To demonstrate the URL rewriting engine in action, let's build an ASP.NET Web application that utilizes simple URL rewriting.
为了实际演示URL重写引擎,我们来构建一个使用简单 URL 重写的 ASP.NETWeb应用程序。
First, you'll need to indicate in the Web.config file if you want perform URL rewriting with the HTTP module or the HTTP handler.
首先,您需要在Web . config文件中指明要使用HTTP模块还是HTTP处理程序来执行url重写。
So, if you rely on Windows authentication and file authorization, you will want to use the HTTP module approach for URL rewriting.
因此,如果您依赖于Windows身份验证和文件授权,您可能希望为url重写使用HTTP模块方法。
应用推荐