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

url rewrite whilst maintaining querystring

$
0
0

Hi.

I have a simply rewrite that allows me use the url mydomain.com/shop/ and it loads the page mydomain.com/results.asp

This all works ok but that page can sometimes have a querystring appended to it (pagination, sorting, etc) and when it soes the url rewrite keeps redirecting back to /shop/ (or results.asp behind the scenes) - i.e. it strips the querystring

I'd like it to keep the querystring so that:

mydomain.com/shop/?page=2

is the same as:

mydomain/results.asp?page=2

This is my rule at the moment:

<rule name="Rewrite all products" stopProcessing="true">
<match url="^shop/$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="results.asp" />
</rule>

Can anyone help me?


Viewing all articles
Browse latest Browse all 2482

Trending Articles



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