In my opinion you should be doing just the opposite.

WWW was used when computers needed the sub.domain to be aware of what
type of content they were about to receive.

Since web-pages today are becoming RIA and browsers are so robust the
need is deprecated, and I and may others argue that www should be
deprecated to.

Users that visit any of my domains using the www prefix will be
rerouted to the top domain, without the prefix.  Google allows
webmasters to specify this as well so it will only crawl and show my
pages as top-domain.org.





An interesting site that takes my side;
http://no-www.org/

On Jan 21, 2:30 am, Jon Bennett <[email protected]> wrote:
> Hi Parris,
>
> >  > <IfModule mod_rewrite.c>
> >  >    RewriteEngine on
> >  >         RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC]
> >  >         RewriteCond %{HTTPS}s ^on(s)|off
> >  >         RewriteRule ^(.*)$ http%1://www.domain.com/$1[R=301,QSA,L]
>
> >  >         RewriteRule    ^$ app/webroot/    [L]
> >  >         RewriteRule    (.*) app/webroot/$1 [L]
> >  > </IfModule>
>
> I need to accomplish something similar, I don't need to worry about
> SSL, but I do have 3 domains, so far I have:
>
> RewriteCond %{HTTP_HOST} !^www.domain1.co.uk$[NC]
> RewriteCond %{HTTP_HOST} !^www.domain2.co.uk$[NC]
> RewriteRule ^(.*)$http://www.maindomain.co.uk/$1[R=301,QSA,L]
>
> RewriteRule    ^$ app/webroot/    [L]
> RewriteRule    (.*) app/webroot/$1 [L]
>
> but this isn't doing anything, except the normal cake rewrite, any ideas?
>
> Cheers,
>
> Jon
>
> --
>
> jon bennett
> w:http://www.jben.net/
> iChat (AIM): jbendotnet Skype: jon-bennett
--~--~---------~--~----~------------~-------~--~----~
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