English 中文(简体)
在URL rewrite为国际空间法学会7 优先配置夹
原标题:Prioritize folders in URL rewrite for IIS7

我们目前正在使用社区Server网站。

最近的一项修改要求创建更短的URL,以进入用户简介网页。 因此,如果我们的网址是www.example.com,我们就希望用户简介网页可以通过www.example.com/username查阅。

为了确保把现有的文件夹/厅放在优先位置,我把重写规则放在了城市网站。

<Override xpath = "/SiteUrls/locations/location[@path= / ]" mode="add" where="end">
       <url name="userslug" path="" pattern="/([a-zA-Z0-9-]+$)" physicalPath="/user/" vanity="{2}?slug=$1" page="userprofile.aspx"  />
</Override>

在通过VS2010 Debug在我的地方环境中进行测试时,这项工作非常顺利。 查阅www.example.com/cleer后转至www.example.com/documents/,并适当显示违约网页。

然而,当我们把这一变化用于生活时,从www.example.com/ 翻回来,用户就没有发现错误,这只是说,寻找现有双管并不把某些how放在优先地位。

我不敢肯定,我们的生活服务器会提供哪些相关信息,但我是否应当考虑让URL能够像VS2010 Debug那样工作?

最佳回答

显然,你必须做的是制定《URL Rewrite规则》,以通过国际空间法研究所向名录添加斜线。

问题回答

暂无回答




相关问题
session transfer issue from Tomcat to ASP.Net

I am using Tomcat to host JSP and using IIS 7.0 to host aspx (C# + .Net 3.5 + VSTS 2008), and I have some session transfer issue from JSP page to ASPX page. JSP page is in one domain and all other ...

How to use appcmd to set debug=false in IIS7

I m trying to use APPCMD to set debug=false in web.config, per the documentation. The specific syntax I am using is: APPCMD SET CONFIG "SITE/VDIR" section:compilation /debug:False /commit:APP ...

Windows User Account that executes only IIS7 Provisions

I have a web application that executes IIS 7 provisions (using Microsoft.Web.Administration.dll) to create our web and ftp sites. When I run this using the administrator account, it works ok. I want ...

Could I get by HttpModule the URL that contains * before?

My web-site is working under ASP.NET 3.5, IIS7, Integrated pipiline mode. My HttpModule is getting request to all resources, including URLs like this: http://my-site.com/address And I would support *...

IIS 7 Http Handler development issue

I am using VSTS 2008 + C# + .Net 3.5 + IIS 7.0 to develop an ASP.Net web site. I want to develop an Http module, which could inspect whether incoming request has some specific http header (e.g. ...

热门标签