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)

<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com$ [NC]
   RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]

   RewriteEngine on
   RewriteRule    ^$ app/webroot/    [L]
   RewriteRule    (.*) app/webroot/$1 [L]
</IfModule>


On Sep 9, 3:17 pm, "[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]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to