Re: HTML Helper webroot not correct
It's documented since a long time ago: CakePHP 1.2: http://book.cakephp.org/view/32/installation CakePHP 1.1: http://manual.cakephp.org/view/308/installing-cakephp On Wed, May 21, 2008 at 10:34 AM, Joel Perras <[EMAIL PROTECTED]> wrote: > > Add the line: > > RewriteBase /~user/ > > to the .htaccess files that already exist in your cake installation. > They should be found in app/.htaccess and app/webroot/.htaccess (this > last one may be redundant). Assuming you haven't changed the location > of any Cake folders and files, this should solve your problem. If you > want to know why this is needed, you can check out > http://preview.tinyurl.com/5t32yg > . > > -Joel. > > On May 21, 4:26 am, Tobes <[EMAIL PROTECTED]> wrote: >> Joel, >> >> Thanks for the advice, but I am not sure what to set it to. >> >> The site is currently in folder on URLhttp://localhost/~user/cakephptest/... >> >> The images that the default layout includes are referencing >> tohttp://localhost/imgrather thanhttp://localhost/~user/cakephptest/img >> >> Can you advise what I need to put in the htaccess file? >> >> Thanks, >> >> Toby >> >> On May 21, 4:19 am, Joel Perras <[EMAIL PROTECTED]> wrote: >> >> > Set a RewriteBase condition in your .htaccess files in app/.htaccess >> > and app/webroot/.htaccess. > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: HTML Helper webroot not correct
Add the line: RewriteBase /~user/ to the .htaccess files that already exist in your cake installation. They should be found in app/.htaccess and app/webroot/.htaccess (this last one may be redundant). Assuming you haven't changed the location of any Cake folders and files, this should solve your problem. If you want to know why this is needed, you can check out http://preview.tinyurl.com/5t32yg . -Joel. On May 21, 4:26 am, Tobes <[EMAIL PROTECTED]> wrote: > Joel, > > Thanks for the advice, but I am not sure what to set it to. > > The site is currently in folder on URLhttp://localhost/~user/cakephptest/... > > The images that the default layout includes are referencing > tohttp://localhost/imgrather thanhttp://localhost/~user/cakephptest/img > > Can you advise what I need to put in the htaccess file? > > Thanks, > > Toby > > On May 21, 4:19 am, Joel Perras <[EMAIL PROTECTED]> wrote: > > > Set a RewriteBase condition in your .htaccess files in app/.htaccess > > and app/webroot/.htaccess. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: HTML Helper webroot not correct
Joel, Thanks for the advice, but I am not sure what to set it to. The site is currently in folder on URL http://localhost/~user/cakephptest/... The images that the default layout includes are referencing to http://localhost/img rather than http://localhost/~user/cakephptest/img Can you advise what I need to put in the htaccess file? Thanks, Toby On May 21, 4:19 am, Joel Perras <[EMAIL PROTECTED]> wrote: > Set a RewriteBase condition in your .htaccess files in app/.htaccess > and app/webroot/.htaccess. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: HTML Helper webroot not correct
Set a RewriteBase condition in your .htaccess files in app/.htaccess and app/webroot/.htaccess. On May 20, 7:49 pm, Tobes <[EMAIL PROTECTED]> wrote: > Hi all, > > I've just started playing with CakePHP & have found that, because I'm > not using a domain name to access my site, but instead using a sub- > folder, the HTML helper is using / as the webroot, rather than the sub- > folder the site is in. > > Any advice on how to correct this welcomed. > > Thanks, > > T --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
HTML Helper webroot not correct
Hi all, I've just started playing with CakePHP & have found that, because I'm not using a domain name to access my site, but instead using a sub- folder, the HTML helper is using / as the webroot, rather than the sub- folder the site is in. Any advice on how to correct this welcomed. Thanks, T --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---