A solution was found! (Thanks Martin) By moving the cake core (cake/) and the application files (appname/) to my home directory ~user/ and only have the files from appname/ webroot in ~user/public_html/ I got what I wanted.
But to make it work with the new file locations, I had to update index.php (now located in ~user/public_html/) since that file defines ROOT, APP_DIR and CAKE_CORE_INCLUDE_PATH. Finally I had to revert back to the original .htaccess files. A positive side effect - besides solving my link issue - the site security has been improved since the cake core and the application files now are located in a place where they are not exposed as they would be in the directory ~user/public_html Again, thanks Martin. On 27 Apr, 11:12, Martin Westin <[email protected]> wrote: > Did I get this right? > You are serving the website aswww.mydomain.comnot sharedhost.com/ > ~user/appname/ ? > > If so, then you should do things slightly differently as the > RewriteBase will be / (root of mydomain.com). > I haven't installed in this way... ever (I think), so I don't want to > give any further advice on what tweaks to do but the difference > between hosting under the usename alias or the "real" domain is > significant. > > On Apr 27, 10:02 am, Jimson <[email protected]> wrote: > > > By adding > > > RewriteBase /~user/ > > > I do get into some circular reference and the server responds with a > > server configuration error. Cannot set DebugLog-level on server since > > the application resides on a shared hosted environment. > > > - Jim > > > On 27 Apr, 02:54, Marcelo Andrade <[email protected]> wrote: > > > > On Sun, Apr 26, 2009 at 2:21 PM, Jimson <[email protected]> wrote: > > > > > (..) > > > > On the server, I have the directory > > > > ~user/public_html/ > > > > To use CakePHP with the mod_rewrite, you need to > > > edit your (3) .htaccess files, including something as > > > > RewriteBase /~user/ > > > > just after the line with "RewriteEngine on" > > > > Best regards. > > > > -- > > > MARCELO DE F. ANDRADE > > > Belem, PA, Amazonia, Brazil > > > Linux User #221105 > > > >http://mfandrade.wordpress.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
