I think you mean "what creat1v1ty wants" there. And I agree that it's better to redirect to www for the default.
On Fri, Apr 13, 2012 at 9:37 PM, euromark <[email protected]> wrote: > @kdubya: thats actually how you normally do it anyway > what kdubya wants is just not how it is done... (you always use www as the > actual site and 301 redirect from non-www there) imo > > > Am Freitag, 13. April 2012 15:51:52 UTC+2 schrieb kdubya: >> >> 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 -- 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
