Hello, I have put in place some rules to change my links. The before and after is below along with my webconfig file. I am only having one problem getting the form buttons to carry the correct URL. Click the after link below and change the ZERO to 0 on the domain then try hoovering over the add to cart button and you will see the link it is trying to create. Let me know if you guys have any ideas. Thank you.
Here are what my links look like:
Before (Replace ZERO with 0 on domain)
After (Replace ZERO with 0 on domain)
All my links work fine and have been rewritten fine but I cant get my Add to Cart button to work it keeps trying to carry over extra variables when clicked. Here is what the add to cart button looks like when clicked:
Here is my webconfig that I am currently running. Let me know if you guys know how to make it work:
<system.webServer>
<rewrite>
<rules>
<rule name="Redirect" enabled="true" stopProcessing="true">
<match url="(.*)\.aspx$" />
<conditions logicalGrouping="MatchAll">
<add input="{QUERY_STRING}" pattern="(.*)=(.*)" />
</conditions>
<action type="Redirect" url=" appendQueryString="false" /> (Replace ZERO with 0 on domain)
</rule>
<rule name="Rewrite">
<match url="^(\w+)~(\w+)~(.*)\.html$" />
<action type="Rewrite" url="{R:1}.aspx?{R:2}={R:3}" />
</rule>
</rules>
<outboundRules>
<rule name="OutRewrite" preCondition="IsHtml">
<match filterByTags="A" pattern="(.*)\.aspx\?(.*)=(.*)" />
<action type="Rewrite" value="{R:1}~{R:2}~{R:3}.html" />
</rule>
<preConditions>
<preCondition name="IsHtml">
<add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
</preCondition>
</preConditions>
</outboundRules>
</rewrite>
</system.webServer>
Here are what my links look like:
Before (Replace ZERO with 0 on domain)
After (Replace ZERO with 0 on domain)
All my links work fine and have been rewritten fine but I cant get my Add to Cart button to work it keeps trying to carry over extra variables when clicked. Here is what the add to cart button looks like when clicked:
Here is my webconfig that I am currently running. Let me know if you guys know how to make it work:
<system.webServer>
<rewrite>
<rules>
<rule name="Redirect" enabled="true" stopProcessing="true">
<match url="(.*)\.aspx$" />
<conditions logicalGrouping="MatchAll">
<add input="{QUERY_STRING}" pattern="(.*)=(.*)" />
</conditions>
<action type="Redirect" url=" appendQueryString="false" /> (Replace ZERO with 0 on domain)
</rule>
<rule name="Rewrite">
<match url="^(\w+)~(\w+)~(.*)\.html$" />
<action type="Rewrite" url="{R:1}.aspx?{R:2}={R:3}" />
</rule>
</rules>
<outboundRules>
<rule name="OutRewrite" preCondition="IsHtml">
<match filterByTags="A" pattern="(.*)\.aspx\?(.*)=(.*)" />
<action type="Rewrite" value="{R:1}~{R:2}~{R:3}.html" />
</rule>
<preConditions>
<preCondition name="IsHtml">
<add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
</preCondition>
</preConditions>
</outboundRules>
</rewrite>
</system.webServer>