Problem Redirecting User Friendly URL in DNN

Mar 27, 2009 at 4:15 PM
I have successfully used this wonderful program in DNN using your previous instructions to redirect domains without "www" to a uniform address.  Now I need to add a rule that takes something like "www.MyDomain.com/test" and send it to a page like "www.MyDomain.com/Default.aspx?tabid=71".

I've tried several different variations using the documentation without success.  Here is what I have now.

<nUrlRewriter xmlns="http://schemas.sanibellogic.com/nUrlRewriter/config/2/0/0/0" enabled="true" trace="false">
    <urls>
    <clear />

<add name="MyDomain.com"
action="redirect"
ignoreCase="true"
redirectType="permanent"
transformType="RegExReplace"
fromScope="absolute"
from="^http(?&lt;SSL&gt;[s]?)://MyDomain.com/(?&lt;WebPage&gt;(.*))$"
to="http${SSL}://www.MyDomain.com/${WebPage}" />

<add name="AnotherDomain.com"
action="redirect"
ignoreCase="true"
redirectType="permanent"
transformType="RegExReplace"
fromScope="absolute"
from="^http(?&lt;SSL&gt;[s]?)://(www.)?AnotherDomain.com/(?&lt;WebPage&gt;(.*))$"
to="http${SSL}://www.MyDomain.com/${WebPage}" />

<add name="Test"
action="redirect"
transformType="String"
ignoreCase="true" from="~/test" to="~/Default.aspx?tabid=71" />

</urls>
</nUrlRewriter>

The first two rules work without any problem, but the third does not.  What am I doing wrong?

Thanks in advance.

Apr 1, 2009 at 4:45 PM
Bump, please.  I really need to get this working.
Coordinator
Apr 7, 2009 at 9:04 PM
Try from="/test" instead of from="~/test"
Apr 8, 2009 at 1:33 PM
Thanks for your reply philip, but it still doesn't work.  I get a 404 back from the site.
Apr 13, 2009 at 10:41 PM
Bump, please.