dgrafx
asked on
web.config file
I need a rewrite rule and can't get the syntax to remove the www OR ANY subdomain from domain.com
so www.domain.com or ww3.domain.com or xyz.domain.com will all rewrite to domain.com
thanks
so www.domain.com or ww3.domain.com or xyz.domain.com will all rewrite to domain.com
thanks
ASKER
I see that I rewrote my question and left out a crucial bit
Is there a way to use this to rewrite multiple domains in one rule?
i.e. "domain1.com|domain2.com|d omain3.net "
and the action is to rewrite back to origin domain?
www.domain.com would be domain.com & www.domain3.net would be domain3.net
Thanks ...
Is there a way to use this to rewrite multiple domains in one rule?
i.e. "domain1.com|domain2.com|d
and the action is to rewrite back to origin domain?
www.domain.com would be domain.com & www.domain3.net would be domain3.net
Thanks ...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
That should work. You could also use something like ^ww?\.(*.)
Many different ways to do regex
Many different ways to do regex
ASKER
see my last post
http://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/