thanks euromark.

Now I know which .htaccess I should edit

*It seems like my case is something to do server setting since *
*www.mydomain shows a default page server company prepared but linked pages
are not working.*
*
*
*
*
*
*
*
*
*
*
*
*
On Tue, Sep 28, 2010 at 8:06 PM, euromark <[email protected]>wrote:

> 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 <[email protected]> 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]<cake-php%[email protected]>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

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