Geta / 404handler

The popular 404 handler for EPiServer, enabling better control over your 404 page in addition to allowing redirects for old urls that no longer works.
Apache License 2.0
54 stars 51 forks source link

Query sting in path at httpErrors in webconfig #151

Open JesperAhne opened 5 years ago

JesperAhne commented 5 years ago

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

marisks commented 3 years ago

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