[symfony-users] Why doesn't the mydomain.com - www.mydomain rewrite rule work in this .htaccess file?

2010-01-15 Thread YTH
Dear all, Hi, I would like to allow users getting redirected to www.mydomain.com if they enter mydomain.com in the browser. I added rewrite rule in the ..htaccess that comes with symfony 1.2 but the rewrite rule does not seem to work. When users enter mydomain.com, their browser continues to

Re: [symfony-users] Why doesn't the mydomain.com - www.mydomain rewrite rule work in this .htaccess file?

2010-01-15 Thread Sebastian Schulze
The second line after the RewriteCond is wrong. It should be more like: RewriteCond %{HTTP_HOST} ^mydomain\.com$ [NC] RewriteRule ^(.*) http://www.mydomain.com$1 [QSA,L,R=301] Bascht On 15.01.10 14:16, YTH wrote: Dear all, Hi, I would like to allow users getting redirected to

Re: [symfony-users] Why doesn't the mydomain.com - www.mydomain rewrite rule work in this .htaccess file?

2010-01-15 Thread YTH
the problem with the rule, making it failed to work. - Original Message - From: Sebastian Schulze maili...@bascht.com To: symfony-users@googlegroups.com Sent: Friday, January 15, 2010 9:21 PM Subject: Re: [symfony-users] Why doesn't the mydomain.com - www.mydomain rewrite rule work