iis 7 - IIS Rewrite: why does IIS show the rewrite URL? -


I use the IIS rewriting module. I have some static files, and they are stored on

website / static / xyz / abc

the IIS rewrite rule has been added as follows:

   

First of all, if I write (ending /)

  http: // mysite / xyz / abc /  

Everything is working properly. The browser address bar shows what I've typed.

Second, if I type (end / without)

  http: // mysite / xyz / abc  

website Still displays the content properly, but changes in the browser address bar (fixed and end / by adding)

  http: // mysite / static /  

< Strong>

& lt; Mail url = "openingball (/.*)?" / & Gt; & Lt; Action type = "rewrite" url = "/ static / {R: 0}" /> & Lt; / Rules & gt;

I think I found your answer here:. When you leave the trailing slash and IIS matches your request, it redirects to you. I believe this is where your redirect is coming from, which gives you / static / inaugurball / information that the IIS has also added the following slash for you because it has come to know that the directory exists.

Can you make sure that your href always / opens the opening ball / (with the following slash) so that the IIS automatically redirects to you?


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -