Results 1 to 1 of 1
I have several domains, some of which I host websites for, and others where I just redirect to an already existing website. I am trying to configure them all so ...
- 03-13-2009 #1Just Joined!
- Join Date
- Jun 2005
- Posts
- 7
Virtual Host configuration works in Firefox but not IE
I have several domains, some of which I host websites for, and others where I just redirect to an already existing website. I am trying to configure them all so that when a user enters www.domain.com or just domain.com, they are taken to their website. I configured virtual host statements like below:
So with the above directive, Firefox will open the site just fine with and without the "www" before the domain. IE will only open the domain with www attached. If I omit "www", then I just get sent to a google page trying to search for the proper website. I got around this by tweaking my BIND zone file for the domain. It originally was written as:Code:<VirtualHost *:80> DocumentRoot "/home/www/website_files" ServerName "www.domain.com" ServerAlias "domain.com" </VirtualHost>
I changed it to:Code:A ip_address www A ip_address
Now IE and Firefox will resolve the domain whether it has www attached or not.Code:A ip_address www CNAME domain.com.
But I still can't get IE to work without "www" for domains that I redirect to sites I don't host. An example of those VirtualHost statements are:
So my main question is, why can Firefox recognize the ServerAlias statements, but not IE? How can I fix this?Code:<VirtualHost *:80> ServerName "www.another_domain.com" ServerAlias "another_domain.com" Redirect / http://forward_to_existing_website.com </VirtualHost>
Thanks.


Reply With Quote