Information générale
Forum:
Microsoft IIS Server
Titre:
Problem with URL rewrite
I have been experimenting with using the MVC pattern. I am using URL rewrite IIS 7.5 to fix the URL so the web server will find the files. What I am trying to do is take the URL I am sending add in index.wc so the URL can be resolved. I have it all working except for one issue so far. Here is what I have so far:
pattern = /(.*)
rewrite = index.wc/{R:1}
This does not work.
localhost/test
This does work.
localhost/test/
localhost/test/xxxx
When I test the pattern in URL rewrite I get this:
localhost/test
R:0 = /test
R:1 = test
localhost/test/
R:0 = /test/
R:1 = test/
I am totally baffled why the trailing / has to be there?
Thanks.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement