Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

appending query string in rewrite map problem

$
0
0

Hi to all,

I am using rewrite map for url rewriting but now i want to append gClid as query string but i am unable to do so.gClid is used for adsword .

Here is my web.config code

[code]

<rules>

<rule name="Redirect to WWW" stopProcessing="true" >
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}" pattern="^www\." negate="true"/>
</conditions>
<action type="Redirect" url="http://www.{HTTP_HOST}{HTTP_URL}" redirectType="Permanent" appendQueryString="false" />
</rule>
<rule name="SachaFrom" enabled="true" patternSyntax="ECMAScript" stopProcessing="false">
<match url=".*" ignoreCase="true" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{URLsToRewriteIn:{REQUEST_URI}}" pattern="(.+)" />
</conditions>
<action type="Rewrite" url="{C:0}" appendQueryString="false" />
</rule>
</rules>
<rewriteMaps>
<rewriteMap name="URLsToRewriteIn">
<add key="/eye-shadow" value="/product.php?id_product=29" />
<add key="/trio-eye-shadow" value="/product.php?id_product=28" />

</rewriteMap>

[/code]

thanks in advance.


Viewing all articles
Browse latest Browse all 27852

Trending Articles



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