简体   繁体   English

IIS 10 web 路由配置

[英]IIS 10 web routing configuration

I am not sure how this done or what I need to do, I think all I need is a simple rewrite rule but I do not know.我不确定这是如何完成的或我需要做什么,我认为我需要的只是一个简单的重写规则,但我不知道。

I have a website that www.mysite.com loads the site, but when I browse to mysite.com it goes to a different page that basically says pageOk.我有一个网站www.mysite.com加载该网站,但是当我浏览到 mysite.com 时,它会转到另一个页面,基本上说 pageOk。 I am not sure where that redirect is happening - as this was occurring with our old server (some one else managed that) - I installed IIS on a new server and so now the traffic at www.mysite.com is fine but I still have this issue of mysite.com showing a page that I do not have in my application.我不确定重定向发生在哪里-因为这发生在我们的旧服务器上(其他人管理)-我在新服务器上安装了 IIS,所以现在www.mysite.com的流量很好,但我仍然有本期 mysite.com 显示了我的应用程序中没有的页面。

What do I need to do to fix this or where might this issue be coming from?我需要做些什么来解决这个问题或者这个问题可能来自哪里?

firest check the do any is URL rewrite rule and HTTP redirect is affecting this.最火的检查是 URL 重写规则和 HTTP 重定向正在影响这一点。 check both server level and site level.检查服务器级别和站点级别。

try to run failed request tracing in iis.尝试在 iis 中运行失败的请求跟踪。

check browsers developer tool -> network tab which status code it is showing.检查浏览器开发者工具 -> 网络选项卡它显示的状态代码。

https://docs.microsoft.com/en-us/iis/troubleshoot/using-failed-request-tracing/troubleshooting-failed-requests-using-tracing-in-iis https://docs.microsoft.com/en-us/iis/troubleshoot/using-failed-request-tracing/troubleshooting-failed-requests-using-tracing-in-iis

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM