OK, I'm stuck at a web host where I can't write outside Apache's document root. I have my app in a subdirectory, and the framework in another one, and everything is working.
The problem is that I want to have my app at the root of the server (/). I have added the following to an .htaccess file at the root:
RewriteEngine on RewriteCond $1 !^(robots\.txt) RewriteRule ^(.*)$ /myapp/public/$1 [L]
Works good enough, but all the URLs generated by urlFor do not take this in account, i.e. an URL that should be /controller/action is generated as /myapp/public/controller/action. I've started looking at various URL config constants to correct this, but haven't found anything that worked yet. Any help would be greatly appreciated. Thanks!
CommentAuthoralexandre
In the end, I just thought I was stuck inside the web root, but the server admin graciously changed some Apache confs for me, and all is fine now.