Question

Locked

How to use Rewrite - rewriting multiple domains to a single domain.

By irawo ·
Hi,
I have registered domains that are verified with my DNS server. I can do nslookup to verify the ip address asigned to each domain. My problem is routing these domians to one single website on my server. I have followed some examples that I have found on the web without success. During my testing I get the message 403 - Forbidden: Access is denied. Here is the conditions that I have coded to do this without success:

rule name="all to domain.net" enabled="true" patternSyntax="ECMAScript" stopProcessing="true" match url=".*" conditions logicalGrouping="MatchAny"
add input="{HTTP_HOST}" pattern="^domain.net$"
add input="{HTTP_HOST}" pattern="^domain.com$"
add input="{HTTP_HOST}" pattern="^www.domain.net$"
add input="{HTTP_HOST}" pattern="^www.domain.com$"
add input="{HTTP_HOST}" pattern="^domain.*(com|net)$"
add input="{HTTP_HOST}" pattern="^(www.)?domain.(com|net)$"
conditions
action type="Redirect" url="http://domain.net/{R:0}"
rule

The goal is to route all www's and non-www's in the form of .com, .net, .org,etc.to a single domain - domain.net. I will appreciate any help.
Thank you for whatever you can do.

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Share your knowledge
Back to Networks Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums