简体   繁体   English

IIS 8.5 URL将非www重写为www不起作用

[英]IIS 8.5 URL Rewrite non-www to www not working

I upgrade my IIS to IIS 8.5 and in IIS 8.5 global asax begin request not firing(I asked here: Global.asax Application_BeginRequest not firing After reinstall Server ) 我将IIS升级到IIS 8.5,并且在IIS 8.5中,全局asax开始请求未触发(我在这里询问: Global.asax Application_BeginRequest在重新安装Server后未触发

In global asax begin request I check if URL is non www.If it is non www I just redirect to www...But begin request not firing in IIS 8.5 在全局asax开始请求中,我检查URL是否不是www。如果不是非www,我只是重定向到www ...但是开始请求在IIS 8.5中不触发

I searched google there is HTTP redirect module 我搜索谷歌有HTTP重定向模块 在此处输入图片说明

I tried this but it still does not work It does not redirect non www to www it give that error in non www 我尝试了此操作,但仍然无法正常工作,它无法将非www重定向到www,但在非www中给出了该错误

在此处输入图片说明

我只是忘记通过http://yazilimsozluk.com/http-error-404将非www版本添加到IIS网站绑定中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将非www网址重定向到www - Redirecting non - www urls to www IIS 上托管应用程序的 URL 重写 - Url Rewrite for hosted application on IIS 如何使MVC URL始终为“ www.domainname.com”? - How to make MVC URL always “www.domainname.com”? URL重写IIS,重定向到登录页面 - URL Rewrite IIS, Redirect to login page WebAPI JsonConverter for x-www-form-urlencoded无法正常工作 - WebAPI JsonConverter for x-www-form-urlencoded not working 在MVC中,单击iis8.5托管应用程序的链接时URL不能正确显示 - In MVC url is not getting properly on clicking a link for the iis8.5 hosted application 发布后,mvc4应用程序未从iis 8.5上的主干集合URL加载控制器 - mvc4 application doesn't load controller from backbone collection url on iis 8.5 after publishing Mvc4网站在本地可以正常运行,但是在部署后在IIS Server 8.5上显示错误 - Mvc4 website locally working fine but gives error on IIS Server 8.5 after deployment 身份验证要求输入用户名和密码到http:// www - Authentication Require Enter username and password to http://www IIS 7.5 URL重写:从旧域到新域的重定向规则似乎不起作用 - IIS 7.5 URL Rewrite: Redirect Rule does not appear to work from old domain to new domain
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM