This should be simple, but I just can’t get it to work.
We have a site called http://mysite.com, and we’ve created a custom logon page. Using js code on the page, when the user hits the login page, we redirect to https. After they submit the username and password, we redirect back to http. We purchased an SSL certificate for the mysite.com domain. All of that is working.
Just prior to the lauch, we discovered that the marketing people were marketing the site as http://www.mysite.com (note the www). So we purchased that domain also. But now when the user hits that URL, their browser announces that the name on the certificate doesn’t match the host name, because of the www.
I need to redirect http://www.mysite.com to http://mysite.com. I’ve tried creating redirection docs (we’re using Internet Sites), but nothing seems to work. Any suggestions on how to properly redirect? This is driving me crazy.
Karen
Subject: Redirection - http://www.mysite.com to http://mysite.com
Karen,
Your problem is that mysite.com isn’t really a host, it’s just the root of a domain. www.mysite.com is a host within that domain, not actually a different domain. All the www is, is a host entry in the DNS for mysite.com
You can redirect from a DNS valid host to another, URL but not really to/from a root.
I’m not really explaining this very well.
Can you not do a virtual host document redirecting http://www.mysite.com to http://mysite.com/db.nsf, assuming the default homepage is a domino database. This works for me. Remember to restart the http task between tests.
http://blog.jaffacake.net
Subject: RE: Redirection - http://www.mysite.com to http://mysite.com
What you say makes sense.
When you say “virtual host”, do you mean create another Internet site? To the best of my knowledge, there is no virtual host doc in R6?
Karen
Subject: Yes,there is a virtual host
Go to the severs view and highlight the server. Then click on Web, create virtual server. It will ask you if you want to create a virtual host or virtual server. Then do what Ben suggested. We do the same thing. Our main site is http://www.tlcc.com but we also use http://teachmewebsphere.com and http://www.teachmewebsphere.com.
Howard