I realized I answered only part of your question. I have done the opposite 
of what you are asking - redirecting domain.tld -> www.domain.tld (making 
the www.domain.tld the canonical URL).

The /site/.htaccess file I use contains:
<IfModule mod_rewrite.c>
   RewriteEngine on
      
   RewriteCond %{HTTP_HOST} ^domain.com$ 
   RewriteRule ^/?$ "http\:\/\/www.domain.com" [R=301,L]
      
   RewriteRule    ^$ app/webroot/    [L]
   RewriteRule    (.*) app/webroot/$1 [L]
</IfModule>

HTH,
Ken

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to