Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a site that is set up in IIS7 and is working (although I don't understand how).

The binding is www.mysite.fr on port 80. In the root of the site there are no files but several folders.

The site loads fine but I don't understand how it is loading?

If I go to https://www.mysite.fr/ it redirects to https://www.mysite.fr/fr/ which redirects back to https://www.mysite.fr/

So we end up in an endless loop which fails. Using fiddler it is a 301 redirect but I have no idea where this is set! I guess it might be in the website code but as I don't know which file is loaded first, I don't know where to look!

Any ideas??

All other sites are working fine...

share|improve this question
    
Could be your code, could be IIS URL Rewrite module (check web.config files in root and /fr/ folders). –  LazyOne Oct 24 '12 at 10:47
    
There isn't anything other than a few folders in the root (i.e. no web.config) and there isn't a /fr/ folder either. Never seen anything like this and I never set it up :( –  neildeadman Oct 24 '12 at 10:52
    
If you have access to IIS Manager app, use it to see any existing URL rewrites. Thing is -- the IIS can be configured to disallow reading/saving some sections from/to web.config files and allow reading/writing such sections from global config file (which you cannot edit unless have full admin rights). It's very unlikely, but it is possible. –  LazyOne Oct 24 '12 at 14:09
    
What you can do here -- is to enable tracing (if you have full admin access to the server, of course), execute 1 of such requests with redirect and see how request was routed internally and at what point redirect response was issued (by some IIS module .. or it's later in a chain -- code itself). –  LazyOne Oct 24 '12 at 14:11
    
@LazyOne I am full admin but there are no URL rewrites that I can see in either locations (no web.config and nothing in global config) –  neildeadman Oct 25 '12 at 11:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.