Re: [us...@httpd] Troubles enforcing canonical hostname in a .htaccess file

2008-12-30 Thread Olivier Sannier
Eric Covener wrote: On Tue, Dec 30, 2008 at 10:30 AM, Olivier Sannier wrote: So I tried to adapt the given example and modified my .htacess file to this: --- RewriteEngine On RewriteCond %{HTTP_HOST} ^mydomain.com

Re: [us...@httpd] Troubles enforcing canonical hostname in a .htaccess file

2008-12-30 Thread Eric Covener
On Tue, Dec 30, 2008 at 1:09 PM, ernst schoen-rene wrote: > The way to deal with this is never in the .htaccess file but in the virtual > hosts configuration. If you do not have access to this, you need to ask > whoever does to make sure that www.domain.com and domain.com both go to the > same vi

Re: [us...@httpd] Troubles enforcing canonical hostname in a .htaccess file

2008-12-30 Thread ernst schoen-rene
The way to deal with this is never in the .htaccess file but in the virtual hosts configuration. If you do not have access to this, you need to ask whoever does to make sure that www.domain.com and domain.com both go to the same virtual host. for instance, these lines in your httpd.conf file or h

Re: [us...@httpd] Troubles enforcing canonical hostname in a .htaccess file

2008-12-30 Thread Eric Covener
On Tue, Dec 30, 2008 at 10:30 AM, Olivier Sannier wrote: > > So I tried to adapt the given example and modified my .htacess file to this: > > --- > RewriteEngine On > > RewriteCond %{HTTP_HOST} ^mydomain.com [NC] > Rewrite

[us...@httpd] Troubles enforcing canonical hostname in a .htaccess file

2008-12-30 Thread Olivier Sannier
Hi all, I have a website with an associated domain name hosted by a third party provider. They let me place .htacess files in folders and mod_rewrite is enabled. I would like that any request for "mydomain.com" be redirected to "www.mydomain.com" while letting through any request for other thi