This is a discussion on Redirect domain.com to www.domain.com within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, what would be the best practice to redirect all requests to http://domain.com to http://www.doamin.com ? ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
what would be the best practice to redirect all requests to http://domain.com to http://www.doamin.com ? Is it possible to do this WITHOUT a distinct VHost for domain.com ? (I donīt think so) Thanks for your attention, Peter |
|
|||
|
|
|
|||
|
Hi,
I think you have defined a vhost for www.domain.com. Add a ServerAlias domain.com to the vhost. And don't forget to configure your dns that it knows about domain.com. Bye Thomas Peter Holm wrote: > Hi, > > what would be the best practice to redirect all requests to > > http://domain.com > > to http://www.doamin.com ? > > Is it possible to do this WITHOUT a distinct VHost for domain.com ? > > (I don?t think so) > > > Thanks for your attention, > Peter |
|
|||
|
On Wed, 17 Aug 2005 14:07:26 +0200, Thomas Krieger
<tom@tom-krieger.de> wrote: >I think you have defined a vhost for www.domain.com. Add a ServerAlias >domain.com to the vhost. And don't forget to configure your dns that it >knows about domain.com. ok, i know this, buit this has a disadvantage, that people will have domain.com in their browser address line, what gives again problems if you want to swith parts of the site to https:// and you have a cert only for www.domain.com So what I wnat, is a redirect to www.domain.com on every request that comes to domain.com. domain.com should NOT exist as a seperate vhost. Hope, i could explain the problem... Thaks for your attention, Peter |