English 中文(简体)
采用IRS标准创建301个中转站
原标题:Create a 301 redirect using ISAPI Rewrite for IIS

我建立了这一机制,并发挥了作用。

RewriteRule shoppingcart.aspx ViewCart.aspx [NC,R=301]

I m trying to get this to work,

RewriteRule search.aspx?advanced=1 AdvancedSearch.aspx [NC,R=301]

如果不能确定使用重塑性条件,或者如果使用i m的代码甚至会奏效,那么,我会为之提供新的帮助。

感谢。

最佳回答

我认为,这是你正在使用的第3号标准。

RewriteCond %{QUERY_STRING} ^advanced=1$ [NC]
RewriteRule search.aspx AdvancedSearch.aspx? [NC,R=301,L]
问题回答

暂无回答




相关问题
Session Management with Windows Authentication

In an ASP.NET web app, using Integrated Windows Authentication, is the session tied to the windows identity? In other words, if I login (using IWA) to the app, and the app stores some "stuff" in my ...

Using Elmah with Cassini

Does anyone know if I can use Elmah with Visual Studio build-in web server(aka Cassini)? I get it working easily on IIS, but using same configuration, it doesn t work with Cassini. When I requested ...

Setting hostname in IIS, include www?

I want to set the hostname for a website I m adding in IIS 7, however do I include the www in the hostname or not? because I want both www.mysite.com and mysite.com both to point to mysite on the ...

inetpub versus any other folder

I ve run websites out of inetpub, as well as from folders just residing on the C: drive. I wonder, are there any definitive advantages to running websites out of inetputwwwroot?

IIS 6.0 hangs when serving a web-service

I am having issues with one of our web-services. It works fine on my development machine (win XP) whether I host it as a separate application or using cassini from Visual studio. Once I deploy on the ...

热门标签