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

Getting error with rewrite code in web.config

$
0
0

I have a store located at offshorepursuits.com/tackle, with tackle being a subweb of ofshorepursuits.com. I have built a new store at offshorepursuitspremiumtackle.com, and new anything pointing to /tackle and beyond to be redirected to offshorepursuitspremiumtackle.com.

Based on research, the below code should work, but i get an error (500).

<rewrite>
<rules>
<rule name="Rewrite to offshorepursuitspremiumtackle.com">
<match url="^Tackle/([0-9a-z]+)/>
<action type="Rewrite" url="http://www.offshorepursuitspremiumtackle.com" />
</rule>
</rules>
</rewrite>

I placed this at the beginning of the web.config file.

Thanks in advance. Dave


Viewing all articles
Browse latest Browse all 26542


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