IIS, SiteCore, Url redirecting when calling folder
I'm working with SiteCore 6.4 and I've setup a hook in the ParseUrl method for the LinkManager. It's all working except for one problem, when I call a url that contains a folder, the HttpRequest I end up getting strips off the directory.
Works: http://domain/
If I call http://domain/state/page.aspx the request I get has the URL as http://domain/page.aspx. If I manually change the url (in debug mode) to include what I wanted then everything works fine.
There is something in the pipeline that is redirecting the url. 开发者_开发百科Where is it? How do I prevent it? There used to be a setting in IIS 5/6 to disbale file exists checks, is there the same in IIS 7?
I assume your 'state' is a 2 letter abbreviation. If that's the case, try setting 'languageEmbedding="never"' in the web.config for your LinkManager. I had similar problem. It tries to interpret your 2 char state as the language, ie: en, sp etc. At least, this is what I think. It fixed the issue I had.
精彩评论