how to make it work from abc.net to abc.com without giving the context path

1 view
Skip to first unread message

mahesh

unread,
Oct 12, 2009, 9:43:12 AM10/12/09
to UrlRewrite
Hi ,

My application is running on specific context called "appcontext"

This is not redirecting if i use the below <rule>
<rule>
<name>Domain Remapping </name>
<condition name="host" operator="equal">abc.net</condition>
<condition name="host" operator="notequal">^$</condition>
<from>^/(.*)</from>
<to last="true" type="permanent-redirect">http://www.abc.com/
appcontext/$1</to>
</rule>

---
and it is working fine only if i give context path after the domain
like
abc.net/appcontext/ then redirectes to www.abc.com/appcontext/


Please advice me how should i make it work from abc.net to abc.com
without giving the context path(but my application is running on
context path).

Regards,
Mahesh.
Reply all
Reply to author
Forward
0 new messages