0

There's an IIS 7.5 + ASP.NET 4.5 application named /AppName/ in a website.

When visiting http://example.com/appname/url?query=string, the browser is redirected to http://example.com/AppName/url to match the case of AppName (i.e. uppercase "A" and "N") which is fine, but in doing so the redirect drops the ?query=string part of the URL which is not fine.

How can it be configured to preserve that when it redirects? We didn't configure the redirect to happen so it must be default behavior to IIS or ASP.NET or to the CMS (Sitefinity in this case).

EDIT Jan 26, 2016:

I created a new application and just put a simple .aspx file in there and it didn't redirect, so I'm guessing this is something to do with the CMS and like @dancriel suggested may lie in the web.config (there are a bunch of handlers in there).

2
  • Just a quick suggestion - have you checked out this question? Commented Jan 26, 2016 at 14:51
  • @MrMajestyk Thanks but it looks like something different Commented Jan 26, 2016 at 23:47

1 Answer 1

1
+50

Have you checked your web.config file at the application root for redirect rules that might be affecting this?

3
  • I think you're on the right track - I edited my answer. I'll leave the question open for now, but I'm thinking you'll probably end up being correct and now it's just a matter of figuring out what is doing it specifically. Commented Jan 27, 2016 at 0:16
  • If you post your web.config perhaps the community can spot your problem. Commented Jan 27, 2016 at 15:11
  • I suspect it's CMS-specific - we reached out to them directly, but thanks for the offer. I plan to come back here if I get more info from them. Commented Jan 27, 2016 at 23:08

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.