Hi, I haven't done this yet but by looking at http://api13.cakephp.org/file/cake/libs/router.php#method-Routerurl, I think you can set the 'base' for URLs.
Hope this helps. Amit Badkas PHP Applications for E-Biz: http://www.sanisoft.com On Wed, Dec 22, 2010 at 6:21 AM, Luos <[email protected]> wrote: > Hi! > > I want to place my CakePHP app to a subdirectory like this: > > web (server document root) > cake_app > app > cake > etc > > > I made a htaccess to the document root: > > <IfModule mod_rewrite.c> > RewriteEngine on > RewriteBase / > RewriteRule ^$ cideo/app/webroot/ [L] > RewriteRule (.*) cideo/app/webroot/$1 [L] > </IfModule> > > (cideo is the name of the app) > > Evrything works well at first look, but if i make links with html > helper, the links will look like this: > > http://domain.com/cideo/controller/action > but i want only > http://domain.com/controller/action > > is there any way to solve this? > > I looked at the source of Router but i only figured out that i have to > modify the $base variable, but i didnt find out where (how) it gets > value. > > 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
