When I enter in my domain like this
www.domain.com
everything works fine. But when I enter it like this
domain.com
I get the 'It works!' page. I'm a complete Apache newb so I'm not exactly sure whats going wrong here.
|
When I enter in my domain like this
everything works fine. But when I enter it like this
I get the 'It works!' page. I'm a complete Apache newb so I'm not exactly sure whats going wrong here. | |||
|
feedback
|
This question came from our site for professional and enthusiast programmers.
|
Traditional solution: in the httpd configuration, find:
and add:
However, this will give you a server that responds with the same content on
| |||
|
feedback
|
|
This has to do with the Apache config as others have stated. Simply added a ServerAlias to the apache config for your virtualhost will do it for you. I don't think that it is good practice to create another virtualhost have it redirect for you. It is good SEO practice to direct everything to one or the other, I suggest using this in either you config file or in your .htaccess
| |||||
feedback
|
|
I had this problem too, and found my solution here. Basically, after an upgrade, Apache put a symlink in | |||
|
feedback
|
|
Check the mod_alias at your apache config file, make sure that the regex is correct for redirection. | |||
|
feedback
|