frenzypeng / securityswitch

Automatically exported from code.google.com/p/securityswitch
Other
0 stars 0 forks source link

The page isn't redirecting properly #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I copied the dll in the bin folder 
2. And changed the web.config as in GettingStart
3. Go http://mywebsite/default.aspx

What is the expected output? What do you see instead?
When I tried to access page "/defulat.aspx", it returned me "301 Moved 
Permanently". However when I remove "/default.aspx" from <paths></paths>, 
https://mywebsite/default.aspx is working.

What version of the product are you using? On what operating system?
Windows XP, IIS 6.0

Please provide any additional information below.
Here is part of my web.config
<securitySwitch xmlns="~/SecuritySwitch-v4.xsd" 
    baseInsecureUri="http://mywebsite"
    baseSecureUri="https://mywebsite">
    <paths>
      <add path="~/default.aspx" ignoreCase="true" />
      <add path="~/style/" security="Ignore" ignoreCase="true" />
      <add path="~/script/" security="Ignore" ignoreCase="true" />
      <add path="~/img/" security="Ignore" ignoreCase="true" />
    </paths>
  </securitySwitch>

Original issue reported on code.google.com by sharon....@permissioncorp.com on 2 Aug 2011 at 7:34

GoogleCodeExporter commented 8 years ago
Are you testing this with Internet Explorer 9, by chance?

Original comment by vent...@gmail.com on 3 Aug 2011 at 8:58

GoogleCodeExporter commented 8 years ago
No, I was testing on Firefox v3.6.18
Is there anything I need to set up in IIS?

Original comment by sharon....@permissioncorp.com on 4 Aug 2011 at 12:09

GoogleCodeExporter commented 8 years ago
I'm not sure what you expected to happen then. If you have default.aspx in the 
config and you access it via http, you should get a 301 redirect (as you 
mentioned). Am I misunderstanding the problem?

Original comment by vent...@gmail.com on 23 Aug 2011 at 1:28

GoogleCodeExporter commented 8 years ago
Closing after lack of further communication.

Original comment by vent...@gmail.com on 5 Nov 2011 at 4:01