I think Ensim is a Java app, yes? You could change your sites.xml
file. Look for <Context path="..." and change it to something your
Cake app won't be using. This is an issue with  a few other web admin
apps, also.

On Sat, Apr 26, 2008 at 11:21 PM, Dino <[EMAIL PROTECTED]> wrote:
>
>  Resolved.
>
>  For the record, the problem here was with the Ensim control panel used
>  by the hosting provider.  Ensim apparently reserves the word 'users',
>  'admin' and possibly others for its own pathnames.  As a result if you
>  have a model called 'users' and try to access http://www.domain/users/action,
>  Ensim intercedes and prevents the execution of the cake index.php. It
>  then returns a 404 because it does not know what to do with /action.
>  (The same thing would happen with admin routes.)
>
>  My solution was to change my paths to www.domain.com/members/action
>  and then use mod_rewrite to alter to index.php?url=users/action.
>  The .htaccess file was as follows:
>
>  RewriteBase /
>  <IfModule mod_rewrite.c>
>     Options -MultiViews
>     RewriteEngine On
>     RewriteRule ^members(.*)$ users$1 [NC]
>     RewriteCond %{REQUEST_FILENAME} !-d
>     RewriteCond %{REQUEST_FILENAME} !-f
>     RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
>  </IfModule>
>
>  Although I still needed to change my redirect statements internal to
>  my controllers this allowed me to avoid renaming my model and
>  controller.  I am sure there are other ways to solve this with custom
>  routes or by overriding the default naming conventions.
>  >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to