Redirect website in IIS

An older website has address site.com, but now we need the address site.net to point to site.com as well. I understand we need to create a dummy web in IIS for site.net, and on Properties of the dummy web, tab Documents, one can choose to redirect to site.com. However, I'd still need to figure some issues as follows:

1. Is the dummy site a must? (can such redirection be done without the dummy site - IIS only)
2. Properties for the dummy site in IIS don't make much sense - one should just leave the defaults?
3. In this case above one should choose "Permanent redirection" I guess. Then a user going to "site.net" will actually get to the default page of site.com. But what happens if a user tries to get to "site.net/page2.html"? Where page2.html is a page in the root folder of site.com.
campinamAsked:
Who is Participating?
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.

Ryan ChongCommented:
Is the dummy site a must?
not necessarily... you can have multiple domain name pointing to a same IP address and in your IIS, you can setup the Site Header in Site Binding to handle multiple domain names.

Properties for the dummy site in IIS don't make much sense - one should just leave the defaults?
you can disable the "Default" site if it's not in used.

In this case above one should choose "Permanent redirection" I guess. Then a user going to "site.net" will actually get to the default page of site.com. But what happens if a user tries to get to "site.net/page2.html"? Where page2.html is a page in the root folder of site.com.
I guess it depends whether... do you want to permanently redirect from site.net to site.com OR let site.net and site.com surf the same contents without redirection? if yes, try to check the point #1 above.
0

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
campinamAuthor Commented:
Ryan thank you,

point 1, are you referring to web Properties, Web Site tab, IP address Advanced, Multiple identities for the website, where one can enter multiple host header values? I couldn't find Site Binding.

point 3, letting site.net and site.com surf the same contents without redirection is a better way of describing what we need - so it actually seems there won't be a redirection after all, right?
0
Tom CieslikIT EngineerCommented:
Are you talking about internal or External website access ?
If this is about internal, just create new forward zone side.net and A record for www to IP where side.com is installed.
Or you can create site redirection in your web config file (only if you hosting both website inside on your local IIS and redirect site.net to site.com
0
Ryan ChongCommented:
letting site.net and site.com surf the same contents without redirection is a better way of describing what we need - so it actually seems there won't be a redirection after all, right?
yes, no need redirection after all, that's what i try to say.

are you referring to web Properties, Web Site tab, IP address Advanced, Multiple identities for the website, where one can enter multiple host header values? I couldn't find Site Binding.
the Site Binding is within the IIS (right click the Site and then click Edit Bindings...).

check: Example 2:  Web server with one IP address using host name bindings

in this article:

Web server with one IP address using host name bindings
https://www.sherweb.com/blog/how-to-set-up-site-bindings-in-internet-information-services-iis/
0
David Johnson, CD, MVPOwnerCommented:
iis bindings
bindings locationbindings settings
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
Web Development

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.