实名认证用户熊川湘 身份证号码430811198506290914

IIS 伪静态设置

   虽然您可以使用UrlRewriter.NET而不做任何变更到您的IIS配置,您将有一些限制 ,在各种各样的友好网址您就可以使用。 In particular, the URL must be mapped to the ASP.NET runtime in order for UrlRewriter.NET to rewrite it.特别是, URL必须被映射到ASP.NET的运行,以便UrlRewriter.NET重写一遍。 To get the full power of UrlRewriter.NET , configure IIS 6.0 to map all requests to the ASP.NET runtime.要获得完整的UrlRewriter.NET ,配置IIS 6.0中,以地图的所有要求的ASP.NET运行时。

Configuring IIS 6.0 on Windows Server 2003 to enable UrlRewriter.NET is easy because IIS 6.0 supports wildcard application mappings.配置IIS 6.0在Windows Server 2003 ,使UrlRewriter.NET很容易,因为IIS 6.0的支持通配符应用程序映射。 This setting enables IIS to map all unrecognised application requests to (in our instance) the ASP.NET runtime.此设置可以让IIS以地图的所有未确认的申请要求(例如在我们的)的ASP.NET运行时。 To enable this wildcard mapping which will enable the UrlRewriter.NET component to work, follow these simple steps on each web server where UrlRewriter.NET will be running (even you developer desktop):要启用此通配符映射,这将使UrlRewriter.NET组成部分的工作,请按照下列简单的步骤,在每个网页上的服务器UrlRewriter.NET将运行(即使你开发桌面) :

  1. Open Internet Information Services (IIS) Manager打开Internet信息服务( IIS )管理器

    click to expand 点击展开
  2. Right-click on the website where you want to configure UrlRewriter.NET and select Properties.右键单击网站,您要设定UrlRewriter.NET并选择属性。

    click to expand 点击展开
  3. Click on the Home Directory tab.单击主目录选项卡。

    click to expand 点击展开
  4. Click the Configuration button.单击配置按钮。

    click to expand 点击展开
  5. Select the .asax application extension and click Edit…选择。 asax应用推广和单击编辑...

    click to expand 点击展开
  6. Copy the Executable path (…\aspnet_isapi.dll) to the clipboard and click Cancel.复制的可执行路径( ... \ aspnet_isapi.dll )到剪贴板,然后按一下取消。

    click to expand 点击展开
  7. Click Insert…单击插入...

    click to expand 点击展开
  8. Paste the Executable path (…\aspnet_isapi.dll) from the clipboard, untick Verify that file exists.粘贴可执行路径( ... \ aspnet_isapi.dll )从剪贴板, untick确认文件是否存在。

    click to expand 点击展开
  9. Click OK to close the Add/Edit Application Extension Mapping dialog单击确定以关闭添加/编辑应用程序扩展映射对话框

    click to expand 点击展开
  10. Click OK to close the Application Configuration dialog.单击确定以关闭应用程序配置对话框。

    click to expand 点击展开
  11. Click OK to close the Properties dialog.单击确定关闭属性对话框。
  12. That's it!这样就大功告成了! The server is configured to allow UrlRewriter.NET to work its magic.服务器配置为允许UrlRewriter.NET工作的魔术队。

 

 

IIS配置:
如果是用"虚拟目录名称/test_abc.aspx" 的话,不需要配置IIS. 使用了"虚拟目录名称/test_abc.html" 配置IIS的方法如下:
上面的图9不准确,准确的为:



还有第八步中的”untick Verify that file exists.“要看仔细。否则重写HTML就无效。

4:备注

不要在"应用程序扩展"里“添加" .html的映射,否则正常的html将无法访问。

posted @ 2009-08-08 14:16  浪达短信群发  阅读(536)  评论(0编辑  收藏  举报