How to redirect sub-domains on IIS

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?
LVL 1
jdffAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ChrisSr. Systems EngineerCommented:
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
0
Dan McFaddenSystems EngineerCommented:
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
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dan McFaddenSystems EngineerCommented:
Any more info about this question?

Dan
0
Dan McFaddenSystems EngineerCommented:
Any feedback for this question?

Dan
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft IIS Web Server

From novice to tech pro — start learning today.