404handler icon indicating copy to clipboard operation
404handler copied to clipboard

Query sting in path at httpErrors in webconfig

Open JesperAhne opened this issue 5 years ago • 1 comments

Hi

Just installed the plugin and noticed that the redirect to the error page dosent work when the path contains a query string.

When the plugin is turned off iis handels query strings just fine. Is this by design?

This does not work:

<httpErrors errorMode="Custom" existingResponse="Replace">
  <remove statusCode="404" subStatusCode="-1"/>
  <error statusCode="404" prefixLanguageFilePath="" path="/sv/felsidor/404?err=404" responseMode="ExecuteURL"/>
</httpErrors>

This works:

<httpErrors errorMode="Custom" existingResponse="Replace">
  <remove statusCode="404" subStatusCode="-1"/>
  <error statusCode="404" prefixLanguageFilePath="" path="/sv/felsidor/404/" responseMode="ExecuteURL"/>
</httpErrors>

/Jesper

JesperAhne avatar Apr 18 '19 07:04 JesperAhne

What is the use case for the query strings? Why do you need those? Do you have some logged information about the error?

marisks avatar Dec 21 '20 15:12 marisks