General information
Forum:
Microsoft IIS Server
Title:
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.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only