Re: redirect from non www to www

2008-09-21 Thread yaqoob
thanks, it also worked for, but probably it's worth noting, that these declarations should be before usual CakePHP rewrites, so it should be like this (at least I think so, the other way around didnt work for me) RewriteEngine on RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com$ [NC] Rew

Re: redirect from non www to www

2008-09-09 Thread xz8888
Thank you. this worked for me On Sep 9, 9:17 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I did it on my side by looking for URLs that don't have the www > > RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com$ [NC] > RewriteRule ^(.*)$http://www.yourdomain.com/$1[R=301,L] --~--~

Re: redirect from non www to www

2008-09-09 Thread [EMAIL PROTECTED]
I did it on my side by looking for URLs that don't have the www RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com$ [NC] RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

redirect from non www to www

2008-09-09 Thread xz8888
Hi I am working on a problem where I need to redirect all non www urls to www I changed my .htaccess file and it looks like this: RewriteEngine on RewriteRule^$ app/webroot/[L] RewriteRule(.*) app/webroot/$1 [L] RewriteEngine On RewriteCond %{HTTP_HOST} ^yourdo