Tuesday, June 1, 2010

Re: changing path to all components

Hi John:

The problem is more like this: On my local machine, i'm getting to
pages http://localhost/index.php and http://localhost/page1.php with
no problem. But our web host set everything up so that my homepage is
now http://www.foo.com/user/index.php and when I click on the "Page 1"
link, it redirects to http://www.foo.com/page1.php, missing the /user/
part. I have changed some of the link manually, but still having some
redirection issues. So I'm wondering if there is a global variable I
can set to take care of this. Thank you.

On Jun 1, 2:45 pm, John Andersen <j.andersen...@gmail.com> wrote:
> Can you explain clearly what it is you are trying to do?
>
> 1) Do you want to change the apache configuration?
> 2) Do you want to change the CakePHP configuration?
> 3) Do you want to do something else?
>
> Based on what you have posted, I can't find out which it is you want
> to do!
>
> You could for example specify that your apache is configured to serve
> content from d:\root and that you have installed CakePHP in d:\root
> \cake and that your application is in d:\root\app
>
> I usually specify apache to serve content for my application from d:
> \root\app\webroot so I don't have any subfolder in my url.
>
> Hope this may clarify what you want and how we may be able to help
> you :)
> Enjoy,
>    John
>
> On Jun 1, 8:48 pm, Jay <jingsi....@gmail.com> wrote:
>
> > I didn't see where I could change the webroot =(

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: