Quantcast
Channel: URL Rewrite Module
Viewing all articles
Browse latest Browse all 2482

Dont redirect if there is a query

$
0
0

Hi,

We've changed systems to 365 dynamics and need to prevent the users from creating new 'items' in the old system. They create new items in the old system on page https://internal.com/test/ or https://internal.com/test for example. We need to redirect this to 365 dynamics, which is simple with URL rewrite.

They also however need to view the old items in the old system. The url for these are https://internal.com/test?guid=itemnumber .

Because theres a query it still redirects to dynamics and tries to pass on the query. Is there a way to not redirect if there is a query? We just need https://internal.com/test/ and https://internal.com/test only to redirect.


Heres a very basic template:

<rules>
<rule name="test5" patternSyntax="ExactMatch" stopProcessing="true">
<match url="test" />
<action type="Redirect" url="https://dynamicsexample.com" appendQueryString="false" />
<conditions>
</conditions>
</rule>
</rules>


Viewing all articles
Browse latest Browse all 2482

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>