Tuesday, September 28, 2010

Re: htaccess and domain

a) you should redirect the other way around: domain => www.domain
http://www.dereuromark.de/2010/07/13/redirect-root-domain-to-www-subdomain/

b) only webroot is relevant. you should therefore connect the apache
to /app/webroot/ (not /app or even worse /)
then you can even delete the other 2 .htaccess


On 28 Sep., 03:55, leafchild <leafchild.b...@gmail.com> wrote:
> I set webroot to app/webroot
> Also I edited .htaccess file to redirect user to domain without www
> url, if a user access the site withwww.mydomain, user is redirected
> to
> mydomain.com.
>
> Not sure which .htaccess file I edited but before I set webroot to app/
> webroot, redirectingwww.mydomainto mydomain
> was working fine but after I set webroot to app/webroot. It seems
> like, .htaccess is not working properly anymore.
>
> I realized that there are couple of .htaccess in cakephp dir.
> - cake dir/.htaccess
> - webroot/.htaccess
> - cake dir/app/.htaccess
>
> Which file I need to edit to set redirect? I edit all of three above
> files but none of it working.

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: