当前位置: 动力学知识库 > 问答 > 编程问答 >

url rewriting - Why is my URL being rewritten like this?

问题描述:

When I navigate to https://research.bhstudios.org/UX/, everything's fine. However, when I navigate to https://research.bhstudios.org/UX, it's rewritten to https://research.bhstudios.org/http/bhstudios/v2/research/UX/:443/UX/ and the server throws an error.

Here is my web.config file:

<configuration>

<system.webServer>

<staticContent>

<remove fileExtension=".svg" />

<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />

<mimeMap fileExtension=".flac" mimeType="audio/x-flac" />

<mimeMap fileExtension=".ogg" mimeType="video/ogg" />

<mimeMap fileExtension=".m4a" mimeType="video/mp4" />

<mimeMap fileExtension=".mat" mimeType="application/mat" />

<mimeMap fileExtension=".json" mimeType="text/javascript" />

<mimeMap fileExtension=".woff" mimeType="application/font-woff" />

<mimeMap fileExtension=".md" mimeType="text/markdown" />

</staticContent>

<httpProtocol>

<customHeaders>

<add name="X-UA-Compatible" value="IE=Edge,chrome=IE8" />

<add name="Access-Control-Allow-Origin" value="*" />

</customHeaders>

</httpProtocol>

</system.webServer>

</configuration>

As you can see there's no rewrite rules. Can anyone tell why removing the trailing / on my URL would cause it to be rewritten to something so malformed?

This is a shared IIS 7.0 server (and what they call "ASP.Net 4.0/4.5") hosted by GoDaddy, so I have very limited control.

分享给朋友:
您可能感兴趣的文章:
随机阅读: