You can try "RewriteBase /" in cake .htaccess. But not sure that it will help.
On Oct 10, 2:00 am, pb <[email protected]> wrote: > hello, > > I have set up a cakephp app which works ok in a subdir main of the > document root > > so I have access to the app byhttp://www.mainsite.com/main/ > > what I would like is to access everything without the need to mention > main in the url > and I cannot change the document root > neither can I put cakephp directly in document root > > so I set up a .htaccess in the document root directory > which says > > RewriteRule ^$ main/ [L] > RewriteRule ^(.*) main/$1 [L] > > this works but the problem is all the $html->link() lines in the view > pages bring back the /main/ in the url because > of cakephp automatic url generation > > so my question is how in general is it possible to install cakephp in > a subdir and then have the url work without > the need to mention the installation dir in the url ? > > thank you for any help --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
