How to redirect sub-domains on IIS

jdff
jdff used Ask the Experts™
on
I would like to know if someone can help me redirect inexistent sub-domains calls to my main domain, for an example; when someone does a type-O www.zzzzzz.mydomain.com it would bring to my home page www.mydomain.com, any ideas?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
ChrisSr. Systems Engineer

Commented:
Open IIS Manager, go to the subdomain you want to redirect. From the right panel, open HTTP Redirect.
Adjust the properties to redirect to the URL you want it redirected to.
iis.PNG
A couple technical URLs to review :
https://technet.microsoft.com/en-us/library/cc732969(v=ws.10).aspx
https://technet.microsoft.com/en-us/library/cc770409(v=ws.10).aspx
http://blogs.iis.net/ksingla/archive/2007/05/03/client-side-redirection-using-httpredirection-module.aspx
Systems Engineer
Commented:
When you said
redirect inexistent sub-domains calls to my main domain
do you mean sub-domains that do not exist?

If you mean sub-domains that do not exist, then the answer is no.

The reason is that the non-existent sub-domains have no DNS entries therefore these FQDNs (URLs) cannot be resolved to find the IP address associated with them.  If you cannot find the IP address of the web server hosting teh sub-domain, then the http request will not hit your server, meaning no redirection can occur.

Dan
Dan McFaddenSystems Engineer

Commented:
Any more info about this question?

Dan
Dan McFaddenSystems Engineer

Commented:
Any feedback for this question?

Dan

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial