I have this in my webroot htaccess:

<IfModule mod_rewrite.c>

    RewriteEngine On

        RewriteCond %{HTTP_HOST} ^mysite\.com$

        RewriteRule (.*) http://www.mysite.com/$1 [R=301,L]

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]

</IfModule> 

It forces the www.

Dave


--~--~---------~--~----~------------~-------~--~----~
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