Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I'm trying to fix redirections map on a client web site.

We used rewriteMap to map some redirection:

<rewriteMap name="My 301s">
   <add key="/page1" value="/the-page-1/" />
   <add key="/page2.html" value="/blablalvla" />
   <add key="/category/culture/page3.html" value="/company/category/page3/" />
</rewriteMap>

and we used this rule

<rule name="Redirect rule1 for My 301s">
   <match url=".*" />
   <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
      <add input="{My 301s:{REQUEST_URI}}" pattern="(.+)" />
   </conditions>
   <action type="Redirect" url="{C:1}" appendQueryString="true" />
</rule>

if we try to access /page2.html it will redirect to /blablalvla and that's great, but it will return 404 error if we try to access /page2.html?some=value

Any idea how to fix that please.

Thanks

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

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.